javascript - Jquery datepicker hidden field date value compare with textbox not working -


i working on jquery datepicker comparison date label , textbox. have converted label date date format( "dd, mmmm, yyyy") , set value hidden field on code behind. pass hidden field value jquery <asp:hiddenfield id="hdfdate" runat="server" />

the logic should :

  • date of txtshipmentdate can't earlier lbldatereceived

the datepicker not working below code.need advice on issue

code behind vb.net

dim datereceived datetime = lbldatereceived.text dim format string = "dd, mmmm, yyyy" dim newdate = datereceived.tostring(format) hdfdate.value = newdate 

aspx

<asp:textbox id="txtshipmentdate" runat="server" visible="false"></asp:textbox>  <asp:label id="lbldatereceived" runat="server" text="label"></asp:label>  <asp:hiddenfield id="hdfdate" runat="server" />   <link rel="stylesheet"href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js">  </script><link rel="stylesheet" href="/resources/demos/style.css">      <script type="text/javascript">         //add on code make jquery work in update panel         function pageload() {             $(function () {                 $("#" + '<%=txtshipmentdate.clientid%>').unbind();                 $("#" + '<%=txtshipmentdate.clientid%>').datepicker({                      dateformat: "dd, mmmm, yyyy",                     onclose: function () {                         $("#" + '<%=hdfdate.clientid%>').datepicker(                             "change",                             { mindate: new date($("#" + '<%=txtshipmentdate.clientid%>').val())                   });                                       }              });         }       </script>  


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -