[jQuery] Re: form standart submit event doesn't handle by jquery submit event

2009-01-22 Thread Mike Alsup
> Example from documentation > > $("form").submit(function() { >       if ($("input:first").val() == "correct") { >         $("span").text("Validated...").show(); >         return true; >       } >       $("span").text("Not valid!").show().fadeOut(1000); >       return false; >     }); > > html: >

[jQuery] Re: form standart submit event doesn't handle by jquery submit event

2009-01-21 Thread ifrond
continue speaking with myself only http://blogs.vertigosoftware.com/snyholm/archive/2006/09/27/3788.aspx Current browsers do not adhere to this part of the html specification. The event only fires when it is activated by a user - and does not fire when activated by code. On Jan 22, 8:50 am, ifr

[jQuery] Re: form standart submit event doesn't handle by jquery submit event

2009-01-21 Thread ifrond
This works: form.get(0).onsubmit = function() { if ($("input:first").val() == "correct") { $("span").text("Validated...").show(); return true; } $("span").text("Not valid!").show().fadeOut(1000); return false; } and somewhere in the action : var f

[jQuery] form standart submit event doesn't handle by jquery submit event

2009-01-21 Thread ifrond
Example from documentation $("form").submit(function() { if ($("input:first").val() == "correct") { $("span").text("Validated...").show(); return true; } $("span").text("Not valid!").show().fadeOut(1000); return false; }); html: Type 'correct' to vali

[jQuery] submit event confusion

2008-05-19 Thread August Lilleaas
Hello there, Got a question regarding the submit event. Got a script that adds text inside text fields when the page loads. There's probably a word for this, but I'm not aware of any, so let's call it "in-line form labels". You've probably seen it before - a name field which says "Enter your name

[jQuery] Submit event

2007-11-01 Thread choffman
Hi There, I could use some jquery help here. This probably something very simple that I'm missing. I started using jquery a few weeks ago so please bear with me. In a nut shell, when a user submits the form (form id="register"), I want it check to make sure they have selected a radio button (cl