Davey wrote:
How do I get the textual content of an <option> element within a <select>
control? e.g. <select name='tc'><option value='0'>All</option><option
value='1'>Some</option></select>
The DOM for HTML <option> elements is documented here:
<http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-70901257>
so
option.text
is what you are looking for once you have an option element object.
If you have the select e.g.
var select = document.forms.formName.elements.tc;
then you can e.g. access
select.options[1].text
--
Martin Honnen
http://JavaScript.FAQTs.com/