33
rated 0 times
[
40]
[
7]
/ answers: 1 / hits: 20617
/ 11 Years ago, tue, december 24, 2013, 12:00:00
Why do I get the following error when doing the following inside the jQuery validation plugin by bassistance? IMO this should have worked, but I get this:
SyntaxError: missing : after property id
var type = $(this).type; //This is a hidden field in the form
$(#myForm).validate({
var type = $(this).type;
rules: {
name: {
required: true,
minlength: 3,
maxlength: 51
},
},
More From » jquery