1. <html> 
  2.     <head> 
  3.         <script type="text/javascript" src="jquery-1.6.2.js"></script> 
  4.         <script type="text/javascript"
  5.             $(function() 
  6.             { 
  7.                 alert($('.test :hidden').length);   //read in sequence, first .test then :hidden 
  8.                 alert($('.test:hidden').length);    //read simultaneously, .test && :hidden 
  9.             });          
  10.         </script> 
  11.     </head> 
  12.     <body>       
  13.         <div class="test"
  14.             <div style="display:none">aaa</div> 
  15.             <div style="display:none">bbb</div> 
  16.             <div style="display:none">vvv</div> 
  17.             <div class="test" style="display:none">ddd</div> 
  18.         </div> 
  19.         <div style="display:none">eee</div> 
  20.         <div style="display:none">fff</div> 
  21.     </body> 
  22. </html> 
alert($('.test:hidden').length);

It is possible to read this from the end. the hidden and class name test element