This question is locked. New answers and comments are not allowed.
Hey all.
So I have a tabstip, loading content via AJAX (LoadContentFrom) and want to use JQuery validation. My validation must be dynamic, so I have all fields set to required via the annotation attribute. and Use the below function to 'ignore' the fields that shouldn't be required at the specific moment:
This works exactly as intended on another tab, within the same tab strip. Unfortunately on another, with exact same coding, the validation always fires. ie, the fields are not 'ignored'. I've done an alert(settngs) and the validator object is there, and is not null.
Could really use some help on this one!
Thanks :)
So I have a tabstip, loading content via AJAX (LoadContentFrom) and want to use JQuery validation. My validation must be dynamic, so I have all fields set to required via the annotation attribute. and Use the below function to 'ignore' the fields that shouldn't be required at the specific moment:
// Ignore those fields we don't want to validate $(function () { var settngs = $.data($('#tbTab2')[0], 'validator').settings; settngs.ignore = ".ignore1"; });This works exactly as intended on another tab, within the same tab strip. Unfortunately on another, with exact same coding, the validation always fires. ie, the fields are not 'ignored'. I've done an alert(settngs) and the validator object is there, and is not null.
Could really use some help on this one!
Thanks :)