Team:TU Delft/tools/table generator
From 2010.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
=Table Generator= | =Table Generator= | ||
<html> | <html> | ||
+ | <form action="javascript:alert('success!');"> | ||
+ | <div> | ||
+ | <input type="text" /> | ||
+ | |||
+ | <input type="submit" /> | ||
+ | </div> | ||
+ | </form> | ||
+ | <span></span> | ||
<script> | <script> | ||
- | $(" | + | $("form").submit(function() { |
- | + | if ($("input:first").val() == "correct") { | |
- | + | $("span").text("Validated...").show(); | |
- | }); | + | return true; |
- | + | } | |
+ | $("span").text("Not valid!").show().fadeOut(1000); | ||
+ | return false; | ||
+ | }); | ||
</script> | </script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</html> | </html> |
Revision as of 16:37, 4 August 2010
Table Generator