[jQuery] Tiny plugin example, message box

2007-01-10 Thread James Thomas
Hey all, I've just discovered Jquery this last weekend and I am now converting all of my in-house Javascript to use it. I played with most of the others but didn't really like any of them; then I found Jquery and was instantly hooked - the website is right, it does make javascript fun. Anyway,

Re: [jQuery] Tiny plugin example, message box

2007-01-10 Thread Mike Alsup
$.fn.isEmpty = function() { var isempty = true; this.each( function() { if (this.value.length != 0) { isempty = false; } } ); return isempty;

Re: [jQuery] Tiny plugin example, message box

2007-01-10 Thread Blair McKenzie
I think there are some full-fledged formhttp://fuzz.bassistance.de/jQueryFormValidation/validateTest.html validationhttp://www.willjessup.com/sandbox/jquery/form_validator/form_validate.htmlplugins around. Even if none of them are quite what you're after they could probably give you some ideas.

Re: [jQuery] Tiny plugin example, message box

2007-01-10 Thread Allan Mullan (Skorpion)
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