The site is made with css, no tables.
I made a script to validate a form and when the form has errors, it displays an error message. I have a few problems with it. I can’t make it display the error where I want it to. I want it to display right below the form within the same css window. That windows classes name is window2. The dom code:
[code]
var emsg = document.createElement(“div”);
emsg.style.width=”auto”;
emsg.style.border=”outset gray 3px”;
emsg.appendChild(document.createTextNode(msg));
document.body.appendChild(emsg);
I’ve tryed changing the last part to [document.window2.appendChild(emsg)[/code] ,but that just displays an error. One thing I haven’t tryed is changing class to id for that window and then getting the id by using
[code] var win2 = document.getElementById[window2]
. Not too sure what to do after that.
heres the page [url]http://www.uogameresources.com/sik/join.php