I've done this, perhaps not the best way. Seems to work. See below. Add this method to the validator object:
$.validator.addMethod("notEqualTo",function(value, element, params) { return this.optional(element) || value != params; }); And then add the rule: $("#form_id").validate({ rules: { first_element_id: { notEqualTo: $("#second_element_id").val() } } }); =) Cam On May 30, 2:34 am, itsoft3g <itsof...@gmail.com> wrote: > hi, > > is there any rule like > rule{ > > client: {notEqual: "newClient"; required:true} > > } > > and the field is required too. > > This field is <select> field. > I have option: <option>select one</option> and <option>newClient</ > option> , other client names. > > Thanks in advance.