asp.net - JQuery Calendar control only appears once when clicking on textbox -
i have jquery calendar works on webpage once. after select date , try click on textbox change date calendar doesn't appear.
here code `
$(document).ready(function () { $("#<%= txtdatepicker.clientid %>").datepicker(); });
`
<asp:textbox id="txtdatepicker" runat="server" ontextchanged="txtdatepicker_textchanged" autopostback="true" ></asp:textbox>
ok figured out. because of autopostback. when using autopostback partial page load therefore datepicker did not work. added datepicker binding pageload function , works now.....
thanks answers guys
function pageload() { $("#<%= txtdatepicker.clientid %>").datepicker(); }
Comments
Post a Comment