I'm trying to use the jquery datepicker - http://jqueryui.com/demos/datepicker/ in a custom control (.ascx).
To enable the datepicker, I need to add the following script at the top for an input:
$("#dateinput").datepicker({});
The problem is, that the id of the element changes when the custom control is on a page. When the custom control is given an id of "c1" for example, the id field becomes "c1_dateinput".
How do I get around this? I need multiple custom controls with datepickers on the page.