Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP return is same page...

Status
Not open for further replies.

daniloa

Programmer
Nov 23, 2001
27
BR
Hi friends...

How are you ???

Well I have a problem that I can't resolve, is the follow:

(I'm a beginner ASP programmer)

I have a Select, like a combobox, ok !!
and for each option in this select I have a description on database, I want this:

when the user change (or click) the option on select, load your description in a textarea that is in the same page side by side with this select.

I just got the descriptions on another page...

Could you help me ???

(P.S. excuse my english it's not good.)

Danilo Almeida
danilo.almeida@gowin.com.br
 
daniloa, try this....

fengshui_1998

<html>
<body onload=&quot;findthis()&quot;>
<form name=&quot;myform&quot;>

Test Select: <select name=&quot;pick1&quot; onchange=&quot;findthis()&quot;>
<option value=&quot;Seattle&quot;>Seattle</option>
<option value=&quot;Chicago&quot;>Chicago</option>
<option value=&quot;New York&quot;>New York</option>
<option value=&quot;Paris&quot;>Paris</option>
</select>
<br>
<input type=&quot;text&quot; name=&quot;mychoice&quot; size=30>
</form>
</body>
<script language=&quot;javascript&quot;>
function findthis(){
var x = document.myform.pick1.options[document.myform.pick1.selectedIndex].value
document.myform.mychoice.value =x

}

</script>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top