Team:TU Delft/tools/table generator

From 2010.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
Line 3: Line 3:
   <form action="javascript:alert('success!');">
   <form action="javascript:alert('success!');">
     <div>
     <div>
-
       <input type="text" />
+
       <input type="text" id="numrows" />
       <input type="submit" />
       <input type="submit" />
Line 12: Line 12:
     $("form").submit(function() {
     $("form").submit(function() {
-
       if ($("input:first").val() == "correct") {
+
       alert($("#numrows").val())  
-
        $("span").text("Validated...").show();
+
-
        return true;
+
-
      }
+
-
      $("span").text("Not valid!").show().fadeOut(1000);
+
       return false;
       return false;
     });
     });
</script>
</script>
</html>
</html>

Latest revision as of 16:38, 4 August 2010

Table Generator