Team:UNIK Copenhagen/test4
From 2014.igem.org
(Difference between revisions)
(Replaced content with " <html> <body> <h3>A demonstration of how to access a Checkbox</h3> Checkbox: <input type="checkbox" id="myCheck"> <p>Click the "Try it" button to check the checkbox.</p> ...") |
|||
Line 1: | Line 1: | ||
- | |||
<html> | <html> | ||
<body> | <body> | ||
Line 14: | Line 13: | ||
function myFunction() { | function myFunction() { | ||
var x = document.getElementById("myCheck"); | var x = document.getElementById("myCheck"); | ||
- | + | if ( x.checked = true;) { | |
+ | function lightVFunction() { | ||
+ | document.getElementById("about_gene").innerHTML="<p>This sequence codes for the viable part of the light chain in the FAB fragment</p>"; | ||
+ | } else { | ||
+ | function lightCFunction() { | ||
+ | document.getElementById("about_gene").innerHTML="<p>This sequence codes for the conserved part of the light in the FAB fragment.</p>"; | ||
} | } | ||
+ | } | ||
+ | |||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 20:26, 12 August 2014
A demonstration of how to access a Checkbox
Checkbox:Click the "Try it" button to check the checkbox.