Team:TU Delft/tools/table generator

From 2010.igem.org

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

Latest revision as of 16:38, 4 August 2010

Table Generator