tags:

views:

57

answers:

4

How to hide this div with jquery

html:

      <div class="BottomSmMargin MiniCheckDiv">
+2  A: 

Depends on what you can use to qualify (the selector), but hide() (or toggle()) is probably what you're looking for.

$('div.BottomSmMargin').hide();
// or
$('div.MiniCheckDiv').hide();
// or both
$('div.BottomSmMargin').hasClass('MiniCheckDiv').hide();
jensgram
And even `$('.BottomSmMargin.MiniCheckDiv').hide()`, cf. @Delan Azabani's answer. Didn't know this one :)
jensgram
+6  A: 
$('.BottomSmMargin.MiniCheckDiv').hide()

Notice there is no space between the two classes here.

Delan Azabani
+3  A: 

http://api.jquery.com/hide/

m.edmondson
+2  A: 

Always useful: have a look at jquery api. There you finde following functions:

.hide()

and

.toggle()

ArtWorkAD