Javascript getElementById in Firefox

document.getElementById("FormFieldName").value; cannot work in firefox when you want to get the form document element.

It keep giving me the error message of document.getElementById("FormFieldName") has no properties

document.getElementById firefox error

I try to Google it and finally found that i should change my script to document.formname.formfieldname.value;

After tested, it work in firefox, IE7 and Opera.fingerscrossed

No comments:

Post a Comment

David World