What I did in JS:
<script type="text/javascript">
function displayThesis(){
var thesisForm = document.getElementById("thesisForm").innerHTML;
document.getElementById("activeForm").innerHTML = thesisForm;
}
function displayNonThesis(){
var nonThesisForm = document.getElementById("nonThesisForm").innerHTML;
document.getElementById("activeForm").innerHTML = nonThesisForm;
}
</script>
then later i would do something such as:
<form action="" method="get">
<p>Do you need the thesis option form?</p>
<label>Yes</label>
<input name="thesisOption" type="radio" value="Yes" onclick="displayThesis()" />
<label>No</label>
<input name="thesisOption" type="radio" onclick="displayNonThesis()" />
</form>
to call those functions.
How would i do this with an external dart program that is listed and called with:
<script type="application/dart" src="attempt1.dart"></script>