tensio
08-31-2004, 11:25 PM
<SCRIPT LANGUAGE="JavaScript">writeSource("jscal1x");</SCRIPT>
<INPUT TYPE="text" NAME="id[txt_1]" VALUE="" SIZE=25>
<A HREF="javascript:cal1x.select(document.forms[0].id[txt_1],'anchor1x','MM/dd/yyyy');" NAME="anchor1x" ID="anchor1x">select</A>
Problem - the name of the input field MUST be "id[txt_1]" as it is part of a php shopping cart that I don't want to mess with BUT the javascript won't run with an input name with []. Is there a way around??
thanks!
<INPUT TYPE="text" NAME="id[txt_1]" VALUE="" SIZE=25>
<A HREF="javascript:cal1x.select(document.forms[0].id[txt_1],'anchor1x','MM/dd/yyyy');" NAME="anchor1x" ID="anchor1x">select</A>
Problem - the name of the input field MUST be "id[txt_1]" as it is part of a php shopping cart that I don't want to mess with BUT the javascript won't run with an input name with []. Is there a way around??
thanks!