jQuery - show() does not animation but show(, with a function does? y? How to disable -


i have following:

function commentreplyopen(id) {     $('#commentreply_' + id).show(function() {         $('#commentreply_' + id).find('.comment_content').focus();     }); } 

problem here when runs jquery doig strange easing animation. if .show() there no animation... how can use above, since want call back, not have animation, go display:none display

thanks

the first argument $.show() method duration — provide short duration, , callback method.

$("#foo").show( 1, function(){   $(".bar", this).focus(); }); 

alternatively, chain logic:

$("#foo").show().children(".bar").focus(); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -