我正在使用 jquery 下拉菜单。它几乎完成了,但由于某种原因我无法让 onChange 工作。
<select id="cd-dropdown" class="cd-select" ONCHANGE="location = this.options[this.selectedIndex].value;" >
<option value="-1" selected>Selecione uma categoria</option>
<option value="1" class="icon-google-plus">Massa Muscular</option>
<option value="2" class="icon-facebook">Resistência</option>
<option value="http://www.google.com" class="icon-twitter" >Vitaminas</option>
<option value="4" class="icon-github">Emagrecimento</option>
</select>