How can I make jQuery select an element in the style of CSS?

JonathanC

New Member
\[code\]<div id="id" class="div-style"><img id="id" class="img-style"></div>\[/code\]I would like to use the id attribute as a way for jQuery to select the element, and the class attribute for CSS to style it.My guess for jQuery selector ran thusly:\[code\]$("#id .div-class")\[/code\]and\[code\]$("#id .img-class")\[/code\]This returns the error "Selector expected"
 
Top