View Full Version : listbox text
Hi I wanted to get the text from the selected items in a list box, the value of the list box item is already being used to obtain the key of the value selected. I know in asp.net you can get the text by using the .text method but is tere a way in asp to do the same? Thanks for any input
08-10-2005, 03:11 PM
var html_element = getElementById("list_select");
var values = html_element.value;
Don't quote me on the syntax though ;)
thanks for the reply... but will this return the value of the option instead of the text? thanks
08-10-2005, 04:40 PM
08-11-2005, 01:18 AM
With classic ASP you can't really get the text. But on the page that you need it of course you could simply get the text straight from the database table based on the ID...
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.