jQuery, Hiding elements on ready is always jumping on page load. how can this be avoided?

Posted by adardesign on Stack Overflow See other posts from Stack Overflow or by adardesign
Published on 2010-04-29T15:37:30Z Indexed on 2010/04/29 19:07 UTC
Read the original article Hit count: 326

Filed under:
|
|

This is the code.

I can't apply display:none;

$(document).ready(function() {
    $("#LeftNav li.navCatHead").not(":first").siblings("li").hide().end().end().first().addClass("open");
});

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about document-ready