Ive been struggling with this all day, been close a couple times but nothing seems to work exactly.
I have a text input <input type="text" name="USA_sub" id="USA_sub" />
and after that an input <input type="text" name="FirstName" id="FirstName" />
I need to make sure (create a validation rule) that states "#FirstName" 's value must be contained in "#USA_sub" 's value.
I keep getting the error "$(sig).contains is not a function" with this:
$.validator.addMethod("FNESig", function (value, element) {
var firstname = $("#FirstName").val();
var sig = $("#USA_sub").val();
if ($(sig).contains(firstname)) {
return true;
} else return false;
}, "Your First Name must be in your Electronic Signature.");
thx Kane