使用"this"关键字获取<select>文本

RKh*_*RKh 4 html javascript xhtml

我使用以下代码:

<select class="element select medium" id="inDistrict"
        name="inDistrict" onchange="setCookie('lastvalue',this.value,1);">
Run Code Online (Sandbox Code Playgroud)

它没有采取:this.value.还有什么用于获取DropDown选定的文本?