title: javascript input field get cleared when page postback
body: <p>I am Working With VB ASP.net and  back End as SQL in That I have To Choose date From Calendar for that I Used javaScript calendar as client Side Coding and other Controls , when my page get postback I lost the calendar value which I was selected but I have to keep the date till I click the save Button here is that TextBox Input  </p>
  
  <pre><code>&lt;input name="txtpodate" id="inputField00" type="text"  
                        style="width:28px; font-family:Segoe UI; font-size:14pt; height: 20pt; background-color: #3366FF;" 
                         onclick ="a();" /&gt;
  </code></pre>
  
  <p>I have Used Hidden Field , onblur , onFocus events but its not Working,</p>
  
  <p>the calendar function is</p>
  
  <pre><code>    &lt;link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" /&gt;
  
  &lt;script type="text/javascript" src="jsDatePick.min.1.3.js" &gt;&lt;/script&gt;
  
   &lt;script type="text/javascript" id ="calender"&gt;
  
          function setCurrentDate() {
  
              var d = new Date();
              var month = new Array();
              month[0] = "JAN";
              month[1] = "FEB";
              month[2] = "MAR";
              month[3] = "APR";
              month[4] = "MAY";
              month[5] = "JUN";
              month[6] = "JUL";
              month[7] = "AUG";
              month[8] = "SEP";
              month[9] = "OCT";
              month[10] = "NOW";
              month[11] = "DEC";
  
              var mnth = month[d.getMonth()];
              var convertedStartDate = new Date();
              var day = convertedStartDate.getDate();
              var year = convertedStartDate.getFullYear();
              var shortStartDate = day + "-" + mnth + "-" + year;
  
             document.getElementById("inputField00").text = shortStartDate;
             document.getElementById("inputField").value = shortStartDate;
             document.getElementById("inputField0").value = shortStartDate;
  
  
          }
  
  
  function a() {
  
              new JsDatePick({
                  useMode: 2,
                  target: "inputField00",
                  dateFormat: "%d-%M-%Y"
  
  
              });
  
              new JsDatePick({
                  useMode: 2,
                  target: "inputField",
                  dateFormat: "%d-%M-%Y"
  
              });
              new JsDatePick({
                  useMode: 2,
                  target: "inputField0",
                  dateFormat: "%d-%M-%Y"
  
              });
  
              setCurrentDate();
  
          };
  
  
        &lt;/script&gt;            
      &lt;/asp:Content&gt;
  </code></pre>
  
  <p>can somebody Help me?</p>