DatePicker disappears after postback

后端 未结 1 1882
南方客
南方客 2020-12-30 09:58

I have an asp:TextBox associated to a jquery DatePicker. This input has a onTextChangedEvent that updates a Literal Control.

All this code is inside an UpdatePanel

相关标签:
1条回答
  • 2020-12-30 10:58

    Use pageLoad, it fires on partial postbacks:

       function pageLoad() { 
          $("#EditFromDate").datepicker({ ... });
    
       } 
    

    $(document).ready() and pageLoad() are not the same!

    0 讨论(0)
提交回复
热议问题