我有像这样的页面
index.php?key=toplist&list=magic
Run Code Online (Sandbox Code Playgroud)
因此,如果在该页面上使用om,我希望Magic选项在选择菜单中标记为已选中
<select name="skill" onchange="window.location.href=this.form.skill.options[this.form.skill.selectedIndex].value">
<option value="index.php?<?=QUERY_STRING?>&list=experience">Experience </option>
<option value="index.php?<?=QUERY_STRING?>&list=magic">Magic</option>
<option value="index.php?<?=QUERY_STRING?>&list=shielding">Shielding</option>
<option value="index.php?<?=QUERY_STRING?>&list=distance">Distance</option>
<option value="index.php?<?=QUERY_STRING?>&list=fishing">Fishing</option>
</select>
Run Code Online (Sandbox Code Playgroud)
谢谢