I am using the jQuery validate plugin which is awesome for straightforward form validation. What i especially like is that it offers the user a better user experience, because there is no need for the round-trip to the server. I still need to do the validation on the server-side (rails) as well. I guess there should be a way to extract the validations from the model into the view transparently, but for now i just add a class
thanks a lot for post this. I was stuck on that myself. ;) Cheers, Márcio
thanks for the post..its working good for me..but how to clear the validations on other fields once we enter some text in one field..the validation is clearing on only the field which we enter some text...thanks again....
I didnt understand it. Can you please explain in more details where to add this method/code. Thanks
Hi, I would like to see an example, because I spent long time to validate either ip address : I have two text fields in a search form, the user can search by ip1 or by ip2 or by both, I want only the ip address filled to be validated and skip the other one if left empty, I did this but it's still not working : http://jsbin.com/AcENopog/2/edit Thanks, your help is appreciated.
Hi Akram, please ask this question on stackoverflow.com : a lot more people will be able to help you there with that problem. Good luck!