Reputation: 6707
How to hide the following div
with jQuery?
HTML:
<div class="BottomSmMargin MiniCheckDiv">
Upvotes: 3
Views: 341
Reputation: 535
If you're having problems, your DOM may not be ready. Make sure that you put it within the document ready handler.
$(document).ready(function(){
$('.BottomSmMargin.MiniCheckDiv').hide();
});
Upvotes: 1
Reputation: 81492
$('.BottomSmMargin.MiniCheckDiv').hide();
Notice there is no space between the two classes here.
Upvotes: 8
Reputation: 70466
Always useful: have a look at the jQuery API site. There you can find the following functions:
and
Upvotes: 1