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();
Comments
Post a Comment