Hi!
I'm sorry but my english is very bad.
I have a problem when I try to validate at least one of 5 fields. I have 5 text box (Facebook, Twitter, GooglePlus, LinkedIn, Skype). I add load JS in Onload section with next code (one function per field):
In each field I added in custom function field, the name of de function
When I submit form first time, the validation is ok, but if I insert one field, for example Twitter, the form continue validating other fields
I also try with only one function with same result:
Can i help me?
I'm working in localhost, so I can't send you an access
Thanks in advance
I'm sorry but my english is very bad.
I have a problem when I try to validate at least one of 5 fields. I have 5 text box (Facebook, Twitter, GooglePlus, LinkedIn, Skype). I add load JS in Onload section with next code (one function per field):
function checkNoFacebook(elem){
if(elem.val() || jQuery("#Twitter").val() || jQuery("#GooglePlus").val() || jQuery("#LinkedIn").val() || jQuery("#Skype").val()){
return true;
}
return false;
}
function checkNoTwitter(elem){
if(elem.val() || jQuery("#Facebook").val() || jQuery("#GooglePlus").val() || jQuery("#LinkedIn").val() || jQuery("#Skype").val()){
return true;
}
return false;
}
function checkNoGoogle(elem){
if(elem.val() || jQuery("#Twitter").val() || jQuery("#Facebook").val() || jQuery("#LinkedIn").val() || jQuery("#Skype").val()){
return true;
}
return false;
}
function checkNoLinkedin(elem){
if(elem.val() || jQuery("#Twitter").val() || jQuery("#GooglePlus").val() || jQuery("#Facebook").val() || jQuery("#Skype").val()){
return true;
}
return false;
}
function checkNoSkype(elem){
if(elem.val() || jQuery("#Twitter").val() || jQuery("#GooglePlus").val() || jQuery("#LinkedIn").val() || jQuery("#Facebook").val()){
return true;
}
return false;
}
In each field I added in custom function field, the name of de function
When I submit form first time, the validation is ok, but if I insert one field, for example Twitter, the form continue validating other fields
I also try with only one function with same result:
function checkSocial(elem){
if(jQuery("#Facebook").val() || jQuery("#Twitter").val() || jQuery("#GooglePlus").val() || jQuery("#LinkedIn").val() || jQuery("#Skype").val()){
return true;
}
return false;
}
Can i help me?
I'm working in localhost, so I can't send you an access
Thanks in advance