I\'m a little confused about the JQuery validation plugin behavior.
If I have the following JQuery:
$(\'#form1\').validate({
/* other validation
If you want to apply the rules using the id then use like this,
$(function () {
var $field = $("#id_field").attr("name");
var $params = {debug:false, rules:{}, messages:{}};
$params['rules'][$field] = {"required": true, "rule": ["params"]};
$params['messages'][$field] = "error message";
$("#frm").validate($params);
});