Team:TU Delft/tools/table generator

From 2010.igem.org

(Difference between revisions)
 
(6 intermediate revisions not shown)
Line 1: Line 1:
=Table Generator=
=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>
+
 
-
<tr>
+
    $("form").submit(function() {
-
<td colspan="2"><input type="submit" value="Generate" onClick="return:false;" /></td>
+
      alert($("#numrows").val())
-
</tr>
+
      return false;
-
</table>
+
    });
 +
</script>
</html>
</html>

Latest revision as of 16:38, 4 August 2010

Table Generator