get inner text of selected option javascript

var sel = document.getElementById("box1");
var text= sel.options[sel.selectedIndex].text;

Discover more from Soa Technology | Aditya Website Development Designing Company

Subscribe to get the latest posts sent to your email.



Leave a Reply

Discover more from Soa Technology | Aditya Website Development Designing Company

Subscribe now to keep reading and get access to the full archive.

Continue reading