> 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:
>
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
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
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
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
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
6 matches
Mail list logo