I have a group of checkboxes that all have the same name. They all have different values. They are just part of a form. They do not make up the entire form. I want the checkboxes to display their error AFTER the last checkbox of that group.
is it possible to do something like this in jQuery?
$("#myform").validate({
errorPlacement: function(error, element) {
var checkboxes = $("#checkboxes");
if(checkboxes.contains(element))
label.insertAfter(checkboxes[checkboxes.length-1]);
},
debug:true
})
How would I go about doing this?
Thanks,
Ian McCullough