Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $.emailval = function(id){
- //$($id).filter(function(){
- var emailVal = $(id).val();
- if($.trim(emailVal) !== ""){
- var emailReq = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
- if (!emailReq.test(emailVal)){
- //alert('Unesi dobar email');
- return 0;
- }else{
- return 1;
- }
- }else{
- //alert("Upisite email");
- return 0;
- }
- //});
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement