【发布时间】:2012-02-11 18:45:00
【问题描述】:
有没有办法做到这一点是没有java的纯html?
当前的html如下:
<form name="form1">
<select name="menu" onChange="location=document.form1.menu.options[document.form1.menu.selectedIndex].value;">
<option value=''></option>
<option value="<?php the_permalink() ?>?product_order=DESC">A-Z</option>
<option value="<?php the_permalink() ?>?product_order=ASC">Z-A</option>
<option value="<?php the_permalink() ?>">Price</option>
<option value="<?php the_permalink() ?>?product_order=id">Recently Added</option>
</select>
</form>
这可行,页面重新加载并应用排序但下拉框中的选择返回空白 - 我希望它显示“活动”选择吗?
【问题讨论】:
标签: html drop-down-menu selection