I want to display different text on part of a page depending on what option box is selected in the form? How can i do this?
i have a function that i wrote in the head but doesnt work
function myselect() {
var x=document.getElementById("mySelect");
for (i=0;i<x.length;i++) {
if(x.options[i].text == trial) {
document.write("trial info");
}
}
}
i put this in the select tag
<select name="attn" size="1" id="myselect">