Am using MVC 3 on a new project and on the learning curve.
Situation: I have input tags (using unobtrusive validation) in a <tr> and I would like to independently submit the values for each <tr> via $.ajax, but only after they are valid. I take care of what/how I read from the inputs to transmit to the server.
Options: Put each form in a <tr> and validate form?? #multiple <td> elements OR Change my layout from tables?? #really
Question: Is there a way to validate a bunch of inputs e.g. $("#tr1 input").validate()?
Help.
I decided to ditch MVC validation and handle my own validation (FREEDOM! a cross between COLD TOLD and Michael Franc’s valuable input) with help from the validity library: http://validity.thatscaptaintoyou.com/ I love the flexibility with this and doesn’t require the use of forms, just employ some common convention in your application e.g
class="required"and create a reusable function with lines like:$(".required").require();. Works beautifully with both forms or ajax.Thanks for your contributions.