當用戶選擇「範圍」時,我試圖使標籤「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