Team:Heidelberg/Modeling/miGUI
From 2010.igem.org
(Difference between revisions)
Line 16: | Line 16: | ||
function getvar (num) | function getvar (num) | ||
- | { | + | { |
- | + | dataarray[num] = document.forms["form"+num].elements[0].value; | |
- | + | ||
document.getElementById("outform"+num).style.display = "block"; | document.getElementById("outform"+num).style.display = "block"; | ||
document.forms["formout"+num].elements[0].value = dataarray[num];} | document.forms["formout"+num].elements[0].value = dataarray[num];} | ||
Line 106: | Line 105: | ||
<form> | <form> | ||
<select name="menu"> | <select name="menu"> | ||
- | <option>aaaa</option> | + | <option value="aaaa">aaaa</option> |
- | <option>bbbb</option> | + | <option value="bbbb">bbbb</option> |
- | <option>cccc</option> | + | <option value="cccc">cccc</option> |
- | <option>dddd</option> | + | <option value="dddd">dddd</option> |
- | <option>eeee</option> | + | <option value="eeee">eeee</option> |
</select></form> | </select></form> | ||
<input type="button" value="Submit" onClick="getvar(1)"></form></td> | <input type="button" value="Submit" onClick="getvar(1)"></form></td> |
Revision as of 16:47, 17 October 2010
|
|
||||||||||||||||||||