jquery tabs postback problem

前端 未结 4 926
囚心锁ツ
囚心锁ツ 2021-02-14 17:42

i am using jquery library in my project.I have terrible problem with jquery tabs.Solutions is that when i was in third tab,i post back my form,tabs reloaded and goes to first t

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-14 18:23

    I had the same problem, fixed by adding the following to the jquery tabs select event handler:

    $("div.ui-tabs-panel").html("");
    

    It effectively clears all existing panels to prevent form stacking.

提交回复
热议问题