$("#form").validate({ ignore: 'input[type=hidden], .select2-input', errorClass: 'border-danger', messages: { agree: "Please accept our policy" } });