Sorry forgot the code: $("#field").rules("add", { remote: { url:"test.asp", type: "post", data: {fieldvalue: function(){ if ($("#field").val() == "") return "empty"; else return $("#field").val();
} } } }); On Dec 7, 9:15 am, Jules <jwira...@gmail.com> wrote: > May be a dumb suggestion, but can't you set the value as "empty" when > there is no value? > > On Dec 6, 7:53 pm, david <michaelg...@gmail.com> wrote: > > > Hi all, > > > I want to make a remote validation on an empty field. Sometimes the > > field may be empty and sometimes not. This depends on the selection of > > other elements. I send them with the data hash of the remote method. > > The response should be written next to the empty field. > > As i understand, by default an empty field is not validated(this is a > > feature), but how may i force the plugin to make it ? > > > Thanks, > > David