![Handling validation with dynamic forms Handling validation with dynamic forms](/assets/uploads/2014/08/computerprogramming_8406403-655x280.jpg)
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]