63
rated 0 times
[
67]
[
4]
/ answers: 1 / hits: 31109
/ 13 Years ago, fri, may 20, 2011, 12:00:00
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.
//This is the code for my textbox
<td> <input id=demo3 type=text size=25 runat=server/><a href=javascript:NewCal('demo3','ddmmmyyyy',true,24)>
<img src=Resources/cal.gif width=16 height=16 border=0 alt=Pick a date></a> </td>
//This is how I trid to access textbox
exDateTime = document.getElementById('pCtrl').value;
but exDateTime is remains null.
I tried using other ways too, but nothing seen happening..
More From » javascript