Team:TU Delft/tools/table generator

From 2010.igem.org

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

Latest revision as of 16:38, 4 August 2010

Table Generator