I think there are some full-fledged
form<http://fuzz.bassistance.de/jQueryFormValidation/validateTest.html>
validation<http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html>plugins
around. Even if none of them are quite what you're after they could
probably give you some ideas.

Blair

On 1/11/07, Mike Alsup <[EMAIL PROTECTED]> wrote:

> $.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
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to