Hi all,

I want to display certain messages depending upon the option selected in the combo box. As soon as the option is selected i want the corresponding messages to be displayed. That is I dont want to use submit button. Please let me know how this could be done using vbscript.

Thanks in advance.

can be done using javascript

example:

<script language=javascript> //<!--


function ChangeINT(obj){
 var strInput = obj.value
   alert('you chose '+strInput);

  
}
// -->
</script>

<input type=radio name="sample1" ID="sample1_on" value="option1" checked onclick="ChangeINT(this);">option1<br>
<input type=radio name="sample1" ID="sample1_off" value="option2" onclick="ChangeINT(this);">option2

or use javascript to submit the form and vbscript to use the value of the checkbox submited if the messages are pulled from a db.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.