get selected text of html dropdown in javascript
var e = document.getElementById("selectElementID");
var value=e.options[e.selectedIndex].value;// get selected option value
var text=e.options[e.selectedIndex].text;
Also in HTML:
- How to install CentOS 7 Linux in VMware Workstation
- how to play youtube videos in html
- php in html
- dropdown menu html
- html template page
- add scroll bar to table html
- add manifist to html
- how to substract date object javascript
- tag html lang attribute
- how to use the label tag in html
- add tabs html
- html iframe no border
- vmware workstation ubuntu 18.04
- onclick mailto inline
- numeral html
- html img src
- html input placeholder
- create page html
- game engine
- html boilerplate vscode
- animate on scroll github
- javascript fixed precision
- reset image tag js
- is it illegal to quote other movies in your own