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

Reply via email to