Search code examples
javascriptvalidationjqxwidgets

Add validation rules on input type


I would ask if is it possible to add validation rules directly on input element and then validate form before submission instead of specify a list of validation rules directly in the form.

something like

$('#element1′).rules("add", { … list of rules });
$('#element2′).rules("add", { … list of rules });

and then $('#form').validate({});

I’m developing using a tag library and to me this functionality comes very useful.

Is possible to do it with jqxValidator component of jqWidjet library?

Thank you for any hint.


Solution

  • The answer from jqxWidjet forum is: it's not possible. Not implemented.