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

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -