List Jquery access -


i creating menu , having problem access element hide menu. grateful if can me out.

<ul id="secondary-nav"> <li class="expandable expanded"> <p style="display: none;"> <ul style="display: block;"> <li class="expandable expanded"> <p> <a href="http://www.example.com">link text 1.1</a> </p> <ul style="display: block;"> <li> <li class="current"> <li> <li> <li> </ul> </li> <li class="expandable"> <li class="expandable"> <li class="expandable"> <li class="expandable"> </ul> </li> 

how access ul element has style tag , change style display "none". unorder list within unorder list.

thank much

$('ul').filter(function() {     return $(this).css('display') == 'block'; // or this.style.display == 'block' }).hide(); 

demo


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -