Restoring page scroll position with jQuery

后端 未结 6 1371
春和景丽
春和景丽 2020-12-05 17:21

I have a page operation that uses something like:

$(\'#thetable tbody\').replaceWith(newtbody);

in an ajax callback. Sometimes, if the user

6条回答
  •  隐瞒了意图╮
    2020-12-05 17:40

    Be sure to use return false; to terminate your function(){} construct.

    The event trigger may be trying to execute the default action of the target DOM element i.e., < a href="" >;

提交回复
热议问题