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
Post a Comment