faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems : forms and user input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

37 of 71 people (52%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

Using a dynamically generated drop down box, how can I find out which item the user selects without using a submit button?

Jun 26th, 2000 06:58
unknown unknown, lungor


<select name="dropdown"
onChange="alert(this.options[this.selectedIndex].value)"

This will popup an alertbox with the chosen value...
You can replace "this" with the name of the dropdown, like
formname.dropdown...



© 1999-2004 Synop Pty Ltd