当用户选择“范围”时,我试图使标签“until”出现。但标签没有出现。 这些是我的代码。用于显示标签的Java脚本
<td><select onchange="Show(this,'vin','until1');"
<option value="less">Less than</option>
<option value="more">More than</option>
<option value="range">By range</option>
<option value="is">Is anything</option>
</select>
</td>
<td width="145"><input id="vin" style="visibility:hidden;" type="text"></td>
<td width="145"><label id="until1" style="display:none;"> until </label> </td>
txt=obj.options[obj.selectedIndex].value;
if (txt.match('range')){
document.getElementById(un).show();}
感谢
该标签缺少'for'属性。 – Quentin 2012-02-15 10:02:43
你需要告诉我你的“显示”方法。 – 2012-02-15 10:02:45