Skip to content

Commit 93523b6

Browse files
committed
Validate: Fix depends callback example
Fixes jquery-validation/jquery-validation#1333
1 parent 9e40c44 commit 93523b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/validate.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
required: true,
119119
email: {
120120
depends: function(element) {
121-
return $("#contactform_email:checked")
121+
return $("#contactform_email").is(":checked");
122122
}
123123
}
124124
}
@@ -136,7 +136,7 @@
136136
// min needs a parameter passed to it
137137
param: 15,
138138
depends: function(element) {
139-
return $("#bonus-material").is(':checked');
139+
return $("#bonus-material").is(":checked");
140140
}
141141
}
142142
}

0 commit comments

Comments
 (0)