peacecodotnet
Programmer
This is a possible doctype problem...or maybe I just suck at coding JavaScript.
Here is the page in question:
I'm making an Emailer for myself with PHP, but before the form gets submitted I want a JavaScript just to make sure that all fields have been filled in (the date fields don't need to be filled in, but if one of the date fields is filled in all must be filled in).
The JavaScript that I have there now works alright in FireFox, but it does nothing in IE. It is supposed to check whether everything is filled. If something is not filled, that error gets added to the variable 'errorstr' and at the end a <span>'s innerHTML is set to errorstr. If there were any errors on the form submit, it returns false so the form doesn't submit.
I can't figure out why it doesn't work in IE. Could it be that I need some type of doctype?
Any help would be greatly appreciated.
Peace out,
Peace Co.
Here is the page in question:
I'm making an Emailer for myself with PHP, but before the form gets submitted I want a JavaScript just to make sure that all fields have been filled in (the date fields don't need to be filled in, but if one of the date fields is filled in all must be filled in).
The JavaScript that I have there now works alright in FireFox, but it does nothing in IE. It is supposed to check whether everything is filled. If something is not filled, that error gets added to the variable 'errorstr' and at the end a <span>'s innerHTML is set to errorstr. If there were any errors on the form submit, it returns false so the form doesn't submit.
I can't figure out why it doesn't work in IE. Could it be that I need some type of doctype?
Any help would be greatly appreciated.
Peace out,
Peace Co.