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
Post a Comment