if ((this.id == "fname" || this.id == "lname") || this.id == "mi"){
var str = this.value.charAt(0).toUpperCase() + this.value.slice(1);
this.value = str.toString();
}
The fname and lname work fine but mi does nothing and I get no error is this because of the if statement or the fact that the mi only has one character?
This post has been edited by Dormilich: 09 December 2011 - 02:39 AM
Reason for edit:: fixed code tags

New Topic/Question
Reply


MultiQuote



|