If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Javascript Form Validation

Hi, I found the below script to validate form. It validate when field is empty but I need to know how to use the same css border for validating the input (i.e. all numbers only or email format). Any help will be great. Thanks.

I am not familiar with Javascript. Can someone please provide an example of the regular expression for the email validation? I just need a little help with how to write the regular expression for incorrect format that uses the css styling border to highlight field (NOT the alert message type). Thanks

I had been trying to get the confirm email and checkbox validation but with no luck. I am not sure what I have done wrong. Any help will be appreciated. Also, is it possible to change the e.type for empty field to class name?