Team:Harvard/Slider Test
From 2011.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<title>Really Awesome Webpage </title> | <title>Really Awesome Webpage </title> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | function | + | $(document).ready(function(){ |
- | + | $("button").click(function(){ | |
- | + | var number=$("box").value; | |
- | + | var output=number*number; | |
- | }</script> | + | $("paragraph1").innerHTML=output; |
+ | }); | ||
+ | }); | ||
+ | </script> | ||
</head> | </head> | ||
Line 19: | Line 22: | ||
<input id="box" type="text"> | <input id="box" type="text"> | ||
<p id="paragraph1">This is a temporary paragraph.</p> | <p id="paragraph1">This is a temporary paragraph.</p> | ||
- | <button type="button | + | <button type="button">Display Square</button> |
</body> | </body> | ||
</html> | </html> |
Revision as of 20:01, 7 July 2011
My Really Awesome Website
iGEM 2011 baby!
This is another paragraph. Pretty cool, huh?
This is a temporary paragraph.