jQuery $(document).ready and UpdatePanels?

后端 未结 19 1742
庸人自扰
庸人自扰 2020-11-22 01:32

I\'m using jQuery to wire up some mouseover effects on elements that are inside an UpdatePanel. The events are bound in $(document).ready . For example:

19条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 01:50

    Upgrade to jQuery 1.3 and use:

    $(function() {
    
        $('div._Foo').live("mouseover", function(e) {
            // Do something exciting
        });
    
    });
    

    Note: live works with most events, but not all. There is a complete list in the documentation.

提交回复
热议问题