Is there a way of trimming the value before checking it so that a space for example would still be NULL "".
Cheers,
Code:if(document.sendmail.emailsubject.value == '') { msg += "Subject cannot be left blank.\n"; error = true; }
|
|
+ Reply to Thread
Results 1 to 4 of 4
Thread: Trim text for form validation
Thread InformationUsers Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
|
Bookmarks