Javascript-o-rama
Javascript-o-rama
Out of context: Reply #15
- Started
- Last post
- 23 Responses
- jpea0
You could also use something like jQuery which allows you to easily target an element in your html without modifying the actual html. Something like
$("myform").submit(function() {
if ($("input:first").val() == "correct") {
$("span").text("Validated...").s...
return true;
}
$("span").text("Not valid!").show().fadeOut(1000);
return false;
});