Is there a work around to get the value of the textbox? Let's say I set the textbox datepicker to 09-14-2014 then after clicking button it returns no value.
Here's my code:
<script type="text/javascript">
$(function () {
$("[id$=txtDate1]").datepicker({
dateFormat: 'mm-dd-yy',
showOn: 'button',
buttonImageOnly: true,
buttonImage: 'Images/calendar.png'
});
});
</script>
<asp:TextBox ID="txtDate1" runat="server" ReadOnly="true"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Search" OnClick="Button1_Click" />