var validateCall = function(caller,rules) { // EXECUTE VALIDATION REQUIRED BY THE USER FOR THIS FILED
var promptText =""
var isError = false
var prompt = $(caller).attr("name")
var caller = caller
for (i=0; i<rules.length;i++){
switch (rules[i]){
case "required":
_required(caller,rules)
break;
case "custom":
_customRegex(caller,rules,i)
break;
case "length":
_length(caller,rules,i)
break;
case "minCheckbox":
_minCheckbox(caller,rules,i)
break;
case "confirm":
_confirm(caller,rules,i)
break;
case "login":
_login(caller,rules,i)
break;
default :;
}
}
|