Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(){
- var emailReg = /^[A-Z0-9._%+-]+@([A-Z0-9-]+\.)+[A-Z]{2,4}$/i;
- var ContactForm = jQuery('#contact');
- if(ContactForm.find("#data_contact").val().length>0
- && emailReg.test((ContactForm.find("#data_email").val()))
- && ContactForm.find("#data_comments").val().length>0)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement