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();
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
2 matches
Mail list logo