Team:TU Delft/tools/table generator

From 2010.igem.org

(Difference between revisions)
(New page: <html> <form action="" id="table_generator"> <table> <tr> <td># rows</td> <td><input type="text" name="numrows" id="numrows" /></td> </tr> <tr> <td># cols</td> <td><input type="text" name=...)
 
(7 intermediate revisions not shown)
Line 1: Line 1:
 +
=Table Generator=
<html>
<html>
-
<form action="" id="table_generator">
+
  <form action="javascript:alert('success!');">
-
<table>
+
    <div>
-
<tr>
+
      <input type="text" id="numrows" />
-
<td># rows</td>
+
 
-
<td><input type="text" name="numrows" id="numrows" /></td>
+
      <input type="submit" />
-
</tr>
+
    </div>
-
<tr>
+
  </form>
-
<td># cols</td>
+
  <span></span>
-
<td><input type="text" name="numcols" id="numcols" /></td>
+
<script>
-
</tr>
+
 
-
</table>
+
    $("form").submit(function() {
 +
      alert($("#numrows").val())
 +
      return false;
 +
    });
 +
</script>
</html>
</html>

Latest revision as of 16:38, 4 August 2010

Table Generator