[jQuery] What am i doing wrong????
When I add this rule to a page with the other rules, my page stops
validating.
Works fine if I don't add it.
What this is for is a check box next to a input box. IF the check box
is checked, the field is mandatory.
OtherCruiseLine: {
required: function(element) {
return $("input[name='CruiseLinesPicked'][value='Other']").is
(':checked');
}
without this rule the page validates. With this I get an error of:
missing } after property list.
But not sure what's wrong..
Thanks!