asp.net - jquery datepicker on postback -



asp.net - jquery datepicker on postback -

i'm using jquery datepicker , i'm facing problem when postback made the datepicker disappears. i've tryed reinitialize datepicker on page load. please advice, in advance. tryed so:

$(document).ready(function () { pageload(); setvalues(); }); function pageload() { $("#calendar").datepicker({ dateformat: 'mm/dd/yyyy' }); }

<script type="text/javascript" language="javascript"> $(function() { $("#calendar").datepicker({ dateformat: 'mm/dd/yyyy' }); }); ; function pageload(sender, args) { if (args.get_ispartialload()) { $("#calendar").datepicker({ dateformat: 'mm/dd/yyyy' }); } }; </script>

jquery asp.net datepicker

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -