Well it took me long enough to find out that the JQuery form validation plugin only works on fields with a "name" attribute.
Anyway, I use it to make all the fields required.
My problem is that at some point, I have one text input
<div id='choices'>
<input type='text' />
</div>
<a href='#' id='add-choice' >Add input </a>
the user can add as many text inputs as he wants :
$("#add-choice").live("click",function(){
$("#choices").append("<input type='text' /><br>");
});
And I want these new fields to be also required. Even if I give a name to the first input. What should I do for the new inputs added dynamically ?
Is there a way to use the plugin without using the name attr, or is there another solution ?