Powered by Blogger.

The selected value of dropdown using javascript


The selected value of dropdown using javascript

var si = document.getElementById(“success-story”).selectedIndex;
var industry_name = document.getElementById(“success-story”).options[si].text.toLowerCase();

get the currently selected item from the drop-down when this.value is not working in ie8

No comments