小编Cha*_*lie的帖子

如何将当前选项标记为已选中?

我有像这样的页面

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&nbsp;</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)

谢谢

html php

4
推荐指数
1
解决办法
4130
查看次数

标签 统计

html ×1

php ×1