jquery accordion not re-initiating after an asp.Net postback

前端 未结 2 1726
礼貌的吻别
礼貌的吻别 2020-12-10 09:10

I\'m firing up a jquery accordion with:

$(document).ready(function(){
   $(\'#accordion\').accordion();
});

Problem is this is an .asp.NET

2条回答
  •  时光取名叫无心
    2020-12-10 09:31

    You need to re-initlaize the accordion after the post back with the UpdatePanel functions as:

    
    

    Relative:
    Asp.Net UpdatePanel in Gridview Jquery DatePicker
    ASP.Net : Need to run javascript on update panel load completed
    How do you get client-side script to execute on an ASP.NET postback? (from an UpdatePanel)

提交回复
热议问题