Hi Pros, I have a question on using javascript.
I want to use some client side javascript for checking user input valid data to the form.
but I am using asp.net web controls.
the source will like below
<input name="ctl16$txtEndDate" type="text" value="11-May-2006" maxlength="11" id="ctl16_txtEndDate" />
If I want to check it in the javascript, now I am hardcoding, using document.aspnetForm.ctl16$txtStartDate.value for checking.
I found ctl16 sometimes will change (sometimes ctl18...), any suggestion on that?
I want to use some client side javascript for checking user input valid data to the form.
but I am using asp.net web controls.
the source will like below
<input name="ctl16$txtEndDate" type="text" value="11-May-2006" maxlength="11" id="ctl16_txtEndDate" />
If I want to check it in the javascript, now I am hardcoding, using document.aspnetForm.ctl16$txtStartDate.value for checking.
I found ctl16 sometimes will change (sometimes ctl18...), any suggestion on that?