Using the following example
[code=html] <option valule=”1″ >The Return of the Jedi</option [/code]
I someone selects this option and submits it to a table, the value 1 is stored. So if someone selects this value from the table, how can I get the text to display?
[CODE] var select = document.getElementById('select'); var select_text = select.options[select.selectedIndex].text; [/CODE]
Help @RPJD spread the word by sharing this article on Twitter...