I am new to jquery and have been fiddling with this code for a bit now.

Essentially its a validation script that checks to see if there is two or more characters in a field. If yes, it does its thing - if not, it shows ( on the page, a div/h2 tag with an error message )

All is good as far as text fields go, but the email field.... well...

> 
> if (email = '' || email.length <= 2) {   
> 
>      valid += '<p><span>X</span>Your Email ' + required + '</p>';  
> 
>  }
> 
> 
> 

All it does is check to see if there are characters in the field. 

I've been through lots of different types of regex's trying to get a validation going where it checks for the @ in the address and will use the existing span to show an error.

Is it possible? within the framework of what I have?

TIA