I have this page which has several TextAreas (asp.net mvc).
I need to validate that at least one of those fields has text in it.
How can I do that with jQuery?
<%= Html.TextArea("taMetodologia",Model.Enmienda.Detalles.EnmiendaMetodologia, 8, 70,new {@class = "Especificaciones"}) %>
That’s an example of the textAreas I have.
Assuming you are not using the validate plugin and all the textareas have the “Especificaciones” class, you could use a filter on the class.
If the length of the following is greater than 0, then at least one of the textareas had a value in it.