Hi,

This post concerns the Validation plugin
http://bassistance.de/jquery-plugins/jquery-plugin-validation/

I have several input fields that should have the same rules and
messages. I don't want to specify them over and over again so my
question is: how can I do that?

Here's an example:

                rules:{
                        customer1:{
                                required:true
                        }
                },
                messages:{
                        customer1:{
                                required:"Välj om du är kund hos Avanza eller 
ej"
                        }
                }

Now I wan't the same to apply to the names customer2, customer3,
customer4 and so in.

Thanks!
/Niklas

Reply via email to