我正在尝试进行设置,以便当用户更改“hier_start”时,刷新页面并使用刚刚进行的选择预先选择下拉列表。
<form name='categories' id="categories">
<div class="row">
<select name="hier_start" onchange="javascript: NextCat('A', this.value)">
<option value="0" parent="0">Select...</option>
[% FOREACH hier_start IN categories.keys %]
<option value="[% hier_start %]">[% hier_start %]</option>
[% END %]
</select>
<select name="hier_A" style="display:none" onchange="javascript: NextCat('B', this.value)">
<option value="0" parent="0">Select...</option>
</select>
<select name="hier_B" style="display:none" onchange="javascript: NextCat('C', this.value)">
<option value="0" parent="0">Select...</option>
</select>
<select name="hier_C" style="display:none" onchange="javascript: NextCat('D', this.value)">
<option value="0" parent="0">Select...</option>
</select>
<select name="hier_D" style="display:none">
<option value="0" parent="0">Select...</option>
</select>
</div>