Team:IIT Madras/Dry lab/Tools/sdm-pd
From 2011.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
function test(){ | function test(){ | ||
var n= document.forms["main_form"]["number"].value; | var n= document.forms["main_form"]["number"].value; | ||
- | alert(n); | + | if(n>=20) alert("At the maximum, only a 100 mutations are allowed by the algorithm."); |
+ | else{ | ||
+ | var i=0; | ||
+ | for(i=0; i<n; i++){ | ||
+ | document.getElementById("inputs").innerHTML+="<input type="text" name="input1"/>"; | ||
+ | } | ||
+ | } | ||
} | } | ||
</script> | </script> | ||
Line 19: | Line 25: | ||
<p><b>Step 2. </b>Enter the number mutation of mutuations required : <input type="text" onblur="test()" name="number"/> | <p><b>Step 2. </b>Enter the number mutation of mutuations required : <input type="text" onblur="test()" name="number"/> | ||
+ | <div id="inputs"></div> | ||
</p> | </p> | ||
</form> | </form> | ||
</div> | </div> |
Revision as of 16:56, 5 October 2011