how to get items that hasnot got a certain class in jquery?
Posted
by manraj82
on Stack Overflow
See other posts from Stack Overflow
or by manraj82
Published on 2010-03-10T12:11:24Z
Indexed on
2010/03/23
6:13 UTC
Read the original article
Hit count: 279
JavaScript
|jQuery
<ul id ='caseStudies'>
<li class="humor crime fantasy hidden"> A </li>
<li class="crime"> B </li>
<li class="humor crime hidden"> C </li>
<li class="humor crime"> D </li>
<li class="humor crime fantasy action hidden"> E </li>
<li class="fantasy action"> F </li>
<li class="humor fantasy"> G </li>
<li class="crime action hidden"> H </li>
</ul>
$('ul#caseStudies li.hidden').each(function() {
}//this will get all the LI in the UL that has got class 'hidden'
But how do i get all the LI in the UL that hasn got a class 'hidden'?
© Stack Overflow or respective owner