Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] <select>
- From: shawn.milo at gmail.com (Shawn Milo)
- Subject: [Javascript] <select>
- Date: Tue Aug 23 13:46:06 2005
Here you go: selectedText = selectedText + document.forms['frmStatusReports'].drpPeriod.options[selectedIndex].text; Shawn On 8/23/05, Iztok Polanic <iztok.polanic@xxxxxxxx> wrote: > Hi! > > I'm trying to retrieve text of a <select> tag. If I use .value method, I > get the value that is written inside <option> tag, but I need the text. > For better illustration I'm providing below an example: > > <select> > <option value="1">somethhing</option> > </select> > > How to retrieve 'somethhing' with JS? > Tnx. > > -- > Bye, > > Iztok > > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript > > > > -- Shawn Milochik The Freelance Pen FreelancePen.com 610-621-2648
- References:
- [Javascript] <select>
- From: Iztok Polanic
- [Javascript] <select>
- Prev by Date: [Javascript] <select>
- Next by Date: [Javascript] JavaScript stoplight chart
- Previous by thread: [Javascript] <select>
- Next by thread: [Javascript] JavaScript stoplight chart
- Index(es):