Handling validation with dynamic forms
Handling validation with dynamic forms

Handling validation with dynamic forms

2014, Sep 04    

Quick tip, more of a reminder for me. In case you have to add/remove fields from a form dynamically and want to apply validation rules on client-side here’s how you should do:

[csharp]

$form.removeData(“validator”)
.removeData(“unobtrusiveValidation”);
$.validator.unobtrusive.parse($form);

[/csharp]

Did you like this post? Then