Dec 7, 2001 #1 innu Programmer Jun 13, 2001 40 AT Hi, I want to click on an entry in my listbox and there should be an alert with the TEXT of the entry (not the VALUE!!!). On onclick I call a function, there I want to give out the text of the selected listbox. Does anyone have an idea? sl, Innu
Hi, I want to click on an entry in my listbox and there should be an alert with the TEXT of the entry (not the VALUE!!!). On onclick I call a function, there I want to give out the text of the selected listbox. Does anyone have an idea? sl, Innu
Dec 7, 2001 #2 toolkit Programmer Aug 5, 2001 771 GB Try this: [tt] <select onChange="alert( 'text: ' + this.options[ this.selectedIndex ].text )" > <option value='1'>One</option> <option value='2'>Two</option> <option value='3'>Three</option> <option value='4'>Four</option> </select> [/tt] Cheers, Neil Upvote 0 Downvote
Try this: [tt] <select onChange="alert( 'text: ' + this.options[ this.selectedIndex ].text )" > <option value='1'>One</option> <option value='2'>Two</option> <option value='3'>Three</option> <option value='4'>Four</option> </select> [/tt] Cheers, Neil