textname=showDateText
imgid= imgidrowArray[4] = " Date: <INPUT name='"+textname+"' type='textfield'> <A href=""javascript:opencalendar('imgcalendar0', 'pd')""><img id='"+imgid+"' src='include/Button_down.gif' style='border: 0px none;'/></A>";
imgid= imgidrowArray[4] = " Date: <INPUT name='"+textname+"' type='textfield'> <A href=""javascript:opencalendar('imgcalendar0', 'pd')""><img id='"+imgid+"' src='include/Button_down.gif' style='border: 0px none;'/></A>";
双引号中有双引号是会报语法错误的!我的text name和img id变是在后面加一个全局的number
比如依次变化为:showDateText1,showDateText2,showDateText3。
我现在在用eval处理!好象有点问题的1
请多帮助
aaa = "javascript:opencalendar('imgcalendar0', 'pd')"
rowArray[4] = " Date: <INPUT name='showDateText' type='textfield'> <A href='" + aaa + "'><img id='imgcalendar0' src='include/Button_down.gif' style='border: 0px none;'/></A>";