Client side validation on button click before AJAX request
问题 I'm using MVC 4 and I want to be able to validate a single row, from a collection of rows in a table, to ensure that the fields are entered correctly and pass validation. The Attributes are correctly applied on the model, for example: [Required] [MaxLength(50)] [MinLength(5)] public string Name {get; set;} Now, on the client side - how do I enable client side validation before calling an AJAX method? To add more complications - I have a button where you can dynamically add a row to the table,