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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Events for combo box

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
hello guys....
what i want is when the user select from combo box, automatically a url will be open, without have to press any button.is there any events to trigger the action, like change event in VB?

thanks so much

New in ASP,
NOR
 
Hi.

As I know the combo box is same as the SELECT object. The SELECT object has "onchange" event, which is same as you want. For details see:

<SELECT name=&quot;sel&quot; id=&quot;sel&quot; size=&quot;1&quot; onchange=&quot;yourFunc()&quot;>
<OPTION value=&quot;1&quot;>1st selection</OPTION>
<OPTION value=&quot;2&quot;>2nd selection</OPTION>
<OPTION value=&quot;3&quot;>3th selection</OPTION>
</SELECT>

regards, KIRI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top