I belive it should be like this: (added messages for you if you arean't using them)
$('#myform').validate({ rules: { score_1 : {required: true}, score_2 : {required: true}, score_3 : {required: true} } messages: { score_1 : "Required message here", score_2 : "Required message here", score_3 : "Required message here" } }); }); On Jul 30, 9:04 am, Tim <tberne...@mchsi.com> wrote: > Also, you might have a missing curly-bracket after > rules: { > score_1 : {required: true} > unless you just mis-typed it. > > Tim :o] > > On Jul 30, 7:57 am, Anoop kumar V <anoopkum...@gmail.com> wrote: > > > > > I think the validation plugin depends only on the name and not the id. > > > On 7/29/09, Leon <leon...@gmail.com> wrote: > > > > Hello, > > > > I have a form with a set of input fields. I am going to validate the > > > form with jQuery Validation. The field has the value of its ID > > > different from the value of its name. I've looked around and tried > > > several times with the form validate method. But, it seems like the > > > validation got trigged only if the id and the name have the same > > > value. But I want to keep the input fields that way. My validation > > > function is simple. > > > $(document).ready(function() { > > > $('#myform').validate({ > > > rules: { > > > score_1 : {required: true} > > > }); > > > }) > > > > My input's > > > > <input id="score_1" type="text" name="score[1]" /> > > > <input id="score_2" type="text" name="score[2]" /> > > > <input id="score_3" type="text" name="score[3]" /> > > > .... > > > > The validate is not trigged in this way. > > > > Can you help me on this? > > > > Thank you. > > > > Leon > > > -- > > > Thanks, > > Anoop- Hide quoted text - > > - Show quoted text -