I have dynamically created a form based on the value of the cookie. Unfortunately my onSubmit() does not work. I have placed a very brief synapse of the code below for just the creation of the form.
I need to know how to make the onSubmit function work when enclosed by document.write statements. All help is appreciated.
Code:
function JingleOrdered(numjingledress)
{
document.write("<FORM ACTION=\"mailto:loretta.stone@sympatico.ca\" METHOD=\"POST\" enctype=\"text/plain\" onSubmit=\"return Calculate();\">");
for (var i = 0; i <= 27; i++)
{
document.write("<TR>");
document.write("<TD>");
document.write("<INPUT TYPE=\"RADIO\" onClick=\"\" NAME=" + jdname + "VALUE=" + jdcolourValue[i] + ">");
document.write(colour[i]);
document.write("</TD>");
etc. //etc. not in code but function is quite lengthy.
}
document.write("<center><INPUT TYPE=\"SUBMIT\" VALUE=\"Submit Order\"></center>");
document.write("</FORM>");
return null;
I need to know how to make the onSubmit function work when enclosed by document.write statements. All help is appreciated.