<div class="box"></div>
<div class="box"></div> <!-- Hide -->
<div class="box"></div> <!-- Hide -->
<div class="box"></div> <!-- Hide -->
I need to hide all this div but not the first div.
I could do something like this:
jQuery('.box').hide();
jQuery('.box').first().show();
Is there a way to remove the first .box from the array before .hide() em?
1 Answer