Rank: Member Groups: Member
Joined: 1/6/2008 Posts: 13
|
How to get the ClientID for DatePicket Control
The following code did not worked in JavaScript var toDate = document.getElementById("<%=dtmToDate.ClientID%>").value;
I Modified the code to
var fromDate = document.getElementById("_eo_" + "<%=dtmFromDate.ClientID%>" + "_picker").value;
It worked.
Can i get the clientID without concatinating "_eo_" and "_picker" values.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi Sunil,
The first form, dtmToDate.ClientID, is correct. However you need to use our client side JavaScript interface, not DHTML interface to interact with our controls. For detailed information on how to use our client side JavaScript interface, open our help file and then "Client API Reference".
Thanks
|