I am using following code:
<select class="element select medium" id="inDistrict"
name="inDistrict" onchange="setCookie('lastvalue',this.value,1);">
It is not taking: this.value. What else to use to get the DropDown selected text?
I am using following code:
<select class="element select medium" id="inDistrict"
name="inDistrict" onchange="setCookie('lastvalue',this.value,1);">
It is not taking: this.value. What else to use to get the DropDown selected text?
var i = this.selectedIndex;
var selectedText = this.options[i].text;
Should do it (if this is the correct context).