Problem with Javascript on MasterPage
I have a javascript which runs fine on a normal aspx page. I am trying to use this control with master pages but the calendar image is not showing up. I have posted the script below which returns the date to ehc control specified.
<script language=JavaScript>
var mycal1 = new calendar1(document.forms[0].elements['txtPurchDt']);
cal1.year_scroll = true;
cal1.time_comp = false;
</script>
Note: I have tried replacing the forms[0] tag to forms['aspnetForm'] which still does not work.
I read in some forum that I need to replace the Unique Id, which I am not sure how. I use C# for coding.
Can somebody HELP...
Thanks in advance
Rajesh M
|