Tuesday 15 June 2010

javascript - addClass('open') is not working in jquery -



javascript - addClass('open') is not working in jquery -

i facing weird problem. trying add together "open" class on condition. using next code.

$('.stereo-nav-pos .login-register').addclass("open");

but not working. have tried debug , came know appending "open" class , going jquery.js file,at end of jquery.js execution removing "open" class dom.

then have tried add together class called "openn" , worked fine. figuring out issue why jquery.js file remove "open" class dom?

if seek run code in console working fine.

can tell me what's going wrong here?

thanks in advance

i'm not sure if work or not, had encountered similar problem while ago. i've done used settimeout().

so may seek this:

settimeout(function(){ $('.stereo-nav-pos .login-register').addclass("open"); },10);

this allow function add together class open after while doesn't gets removed other jquery function.

javascript jquery css css3

No comments:

Post a Comment