title: To get value of textbox in javascript
body: <p>I dont know why my script is not working. I tried to get value of textbox in javascript but its not giving me a value. Value is shown as null.</p>
  
  <pre><code>//This is the code for my textbox
  
      &lt;td&gt; &lt;input id="demo3" type="text" size="25" runat="server"/&gt;&lt;a href="javascript:NewCal('demo3','ddmmmyyyy',true,24)"&gt;
       &lt;img src="Resources/cal.gif" width="16" height="16" border="0" alt="Pick a date"&gt;&lt;/a&gt;   &lt;/td&gt;
  
  //This is how I trid to access textbox
      exDateTime = document.getElementById('pCtrl').value;
  </code></pre>
  
  <p>but exDateTime is remains null.
  I tried using other ways too, but nothing seen happening..</p>