Yeah I'm working on one now - not easy as you have to factor in alot of things (i.e. do you have events fire on onchange() or onsubmit() and if you use onchange() there are some that must be checked onsubmit()) - it's a bit of a nightmare.
Allan ----- Original Message Follows ----- > I think there are some full-fledged > form<http://fuzz.bassistance.de/jQueryFormValidation/valid > ateTest.html> > validation<http://www.willjessup.com/sandbox/jquery/form_v > alidator/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/ > _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/