[jQuery] Re: remote validation on empty field

2009-12-06 Thread Jules
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();

[jQuery] Re: remote validation on empty field

2009-12-06 Thread Jules
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 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 s