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

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -