asp.net - update panel , add function that works after updating -
i use jquery datepicker
i have input in updatepanel
<input id="datemask" type="text" />
and js code:
function setd() { alert(1); } $(document).ready(function () { setd(); $("#datepicker").datepicker({ changemonth: true, changeyear: true }); });
but problem when post form server refresh update panel $(document).ready(function ()
doesn't work after refreshing ,so can execute function from?
you need rebind in sys.webforms.pagerequestmanager.add_endrequest event. see similar post jquery $(document).ready , updatepanels?
Comments
Post a Comment