option boxes

They have: 426 posts

Joined: Feb 2005

I want to display different text on part of a page depending on wha

</code>'t 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

<code>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">'