jquery needs to rebind events on partial page postback

后端 未结 5 1869
别那么骄傲
别那么骄傲 2021-01-05 00:47

How can I rebind my events (jquery) when I perform a partial page postback?

I am wiring everything up using:

$(document).ready(function(){};
<         


        
5条回答
  •  耶瑟儿~
    2021-01-05 01:21

    Check out the "live" feature of jQuery 1.3 here. You can add events to future elements as well as current elements on the page. This may simplify the code you'll need to write.

提交回复
热议问题