Click to See Complete Forum and Search --> : lil errors


Booooze
08-25-2003, 01:28 PM
can any1 tell me what is wrong with my code, im stuck, and going insane. i think im missing something very small, or something is in the wrong place>

form2.quizsource.value += "\t + document.write(" + '1:' + firsttextarray[i] + '<input type='text' name='answera2' size='30'>' + thirdtextarray[i] + ");";
form2.quizsource.value += "\t + document.write("<input type='button' value='check' onClick='checkdata();'>");";



thx

Khalid Ali
08-25-2003, 01:34 PM
I think I have fixed the syntactical errors..try this

form2.quizsource.value += "\t" + document.write(" + '1:'" + firsttextarray[i] + "<input type='text' name='answera2' size='30'>" + thirdtextarray[i] ) ;
form2.quizsource.value += "\t" + document.write("<input type='button' value='check' onClick='checkdata();'>");

Booooze
08-25-2003, 02:42 PM
thank you