I'm comparing two textfields with something like
if (document.form1.code.value != "FRNretrt83473")
Can the comparison be fixed to ignore case sensitivity.
Thanks.
I'm comparing two textfields with something like
if (document.form1.code.value != "FRNretrt83473")
Can the comparison be fixed to ignore case sensitivity.
Thanks.
have you tried the toLowercase() method?
I agree with you thenajsays this is the right function to use.
I would change the function like this for clarity.
var fieldvalue= document.form1.code.value.toLowerCase();
if (fieldvalue != "frnretrt83473") {
Bookmarks