How can I simulate a validation group with jquery validation plugin?

I've been googling and I've found that I can remove/add class (e. G required number ); that gave me some ideas on how to simulate validation groups.

I've been googling and I've found that I can remove/add class (e. G, required, number); that gave me some ideas on how to simulate validation groups. $(document).

Ready(function(){ $("#add"). Click(function() { $("#fecha"). RemoveClass("required"); $("#fecha").

RemoveClass("date"); $("#numeroDoc"). RemoveClass("required"); $("#numeroDoc"). RemoveClass("number"); $("#serieDoc").

RemoveClass("required"); $("#serieDoc"). RemoveClass("number"); $("#importe"). AddClass("required"); $("#importe").

AddClass("number"); $("#concepto"). AddClass("required"); }); $("#save"). Click(function() { $("#importe").

RemoveClass("required"); $("#importe"). RemoveClass("number"); $("#concepto"). RemoveClass("required"); $("#fecha").

AddClass("required"); $("#fecha"). AddClass("date"); $("#numeroDoc"). AddClass("required"); $("#numeroDoc").

AddClass("number"); $("#serieDoc"). AddClass("required"); $("#serieDoc"). AddClass("number"); }); $("#form1").

Validate({ errorPlacement: function(error, element) { error. AppendTo( element. Parent("td").

Next("td") ); } , submitHandler: function(form) { $("#add"). Click(function() { addDetail(); return false; }); $("#save"). Click(function() { return false; }); } }); }); Though, I've apparently found the answer, I'm not so sure about it due to some details: 1.

When the page first loads, the numbers only validation (class="number") doesn't work till I press Add 2. If I make a mistake by entering the data then I have to press twice the button to fire the validation I hope you can help me improve this code.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions