jquery - Hiding a div with two styles classes added to it -



jquery - Hiding a div with two styles classes added to it -

i have div 2 classes added , want hide div(and div doesn't have id).

for e.g.

<div class="class1 class2"> hello!! </div>

can please suggest how can achieved?

thanks

that's pretty easy: $('div.class1.class2').hide();

note select all matching divs. if want select single 1 need utilize more specific selector or id.

jquery

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -