Ranjan,
vbscript and javascript are not mutually exclusive. ASP scripts are run on the server so only function when the page is loading, and mark is suggesting you add client-side scripting. The most well-supported client-side script is javascript and his example would work well for your purpose.
Jared
Hello Jhardman !!!
I have used the script and it works well.
I just have done it like this ;
<%
dim str
str = "select india pakistan bangladesh usa uk china indonesia southAfrica"
dim country
country = split(str," ")
dim c
c=ubound(country)
response.write("<form><select name=cbo onchange=javascript
:document.getElementById('myId' ).innerHTML=this.value;>")
for i=0 to c
response.write("<option value="&country(i)&">"+Cstr(country(i)))
response.write("</option>")
next
response.write("</select></form>")
%>
But in this case one problem is that when I open view soure on the page I found that there is nothing inside the <div> section.I just want to make it visible.
ThankSSSSSSSS !!!!!!