Dynamic Validator Text
Dynamic Validator Text
Keep in mind, I'm extremely new to jQuery.
I'm adding a validator in the following fashion:
jQuery.validator.addMethod('tags', function(val, el) {
// my logic to return true or false, works fine
}, 'Select at most ' + $('#hidden_input_here').val() + ' tags.');
This doesn't fly. How can I make the "message" part of this dynamic based on a hidden input field? I have searched far and wide and can't find an example that doesn't confuse me to no end.
Thanks