-
This is my problem;
I'm making this 'exercise' where users have to fill in a word in a textbox, when finished they click on a button and I do a javascript validation. The correct answers get innerText = 'correct' in the td next to the textbox and the wrong answers get innerText='wrong'.
BUT!
I can't seem to get any innerText inside the form. if I put the TD outside the form (but in the same table) it works, if I try to put the td that has to hold the innerText inside the form tags it doens't work.
I don't get it. Can somebody please help me, at least try to explain me why this is happining. This only has to work on IE cause I have this code running on an intranet.
Thanks for any help
-
Try using this code.
Code:
<Script Language="JavaScript">
var correctMsg = "correct"
window.status = correctMsg;
</Script>
-
Or this will work:
Code:
<Script Language="JavaScript">
defaultStatus = "Hello World"
</Script>
-
Thanks for answering, I found out what I was doing, I put a ; too many (being a silly cow is a tough life!!)
and I had also names the textbox the same name as the id of the td-tag, which caused some confusion.
bye