> $.fn.isEmpty = function() {
>         var isempty = true;
>
>         this.each(
>                 function() {
>                         if (this.value.length != 0) {
>                                 isempty = false;
>                         }
>                 }
>         );
>         return isempty;
> }
>

If you're using the form plugin on that page you could also do:

if (!$('#myForm *').fieldValue()) {
    alert('blah');
}

- or -

if (!$('#testForm').formToArray().length) {
    alert('blah');
}

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to