Hi,
I am new to jqeury.
I have a few queries regarding jqeury datepicker.
I faced the issue while displaying the datepicker on postback.
which I resolved using pageLoad function in javascript.
Now I want datepicker whos value gets set on postback. Textbox to which the datepicker is bound shows the value from the database. Used hidden field.
However datepicker calendar doesnt show the value which is displayed in the textbox.
My code :
<script type="text/javascript">
Sys.Application.add_load(LoadHandler);
function LoadHandler() {
$(document).ready(function () {
$("#<%= Display_Date.ClientID%>").datepicker({
dateFormat: 'dd/mm/yy',
appendText: '(dd/mm/yyyy)',
showOn: "button",
buttonImage: '<%=ResolveClientUrl("~/cal/calendar.gif")%>',
buttonImageOnly: true
});
<asp:HiddenField ID="txt_Date" runat="server" />
<table id="tbl_control" cellspacing="0" cellpadding="0" border="0" style="border-style:none; border-width:0px; white-space: nowrap;">
<tr>
<td align="left"style="border-style:none; border-width:0px; height: 30px;"><asp:textbox id="Display_Date" runat="server" Width="50" SkinID="SmallTextBox"></asp:textbox>
</td>