下拉列表框中的选项问题 侠客们,下拉列表框的一个选项被选中后,下次就不能再选它了,怎么实现呢?help me. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script languange="javascript">function selChange(sel){ sel.disabled = true;}</script><select onchange="selChange(this)"><option>--Select--</option><option>1</option><option>2</option><option>3</option></select> ls的程序,它指控件。lz是不是它指控件中的选项? <script languange="javascript">var selIdx = new Array();function selChange(sel){ for(i = 0; i < selIdx.length; i++) if(selIdx[i] == sel.selectedIndex){ alert("You can not select this item."); sel.selectedIndex = 0; return; } selIdx[selIdx.length + 1] = sel.selectedIndex; sel.options[sel.selectedIndex].style.color = "#D3D3D3";}</script><select onchange="selChange(this)"><option>--Select--</option><option>1</option><option>2</option><option>3</option></select> JavaScript累加器问题,十万火急 CSS+jquery问题 关于JavaScript的小问题 求救,关于两个select控件中值的增加和删除,急!!!!! 树形菜单问题,请高手帮忙修改两个地方,本人js一窍不通但是要用到,呵呵谢谢 请问如何设置页面的hotkey jquery IE8下 attr的bug? 怎么解决 怎樣讓層能夠用鼠標拖動起來﹗?不用DW里的方法﹗﹗ 关于调用父窗口中函数的问题 ajax请求过快导致status=0 一个JAVASCRIPT得 问题 一个分符串的问题,跪求帮助
function selChange(sel)
{
sel.disabled = true;
}
</script>
<select onchange="selChange(this)">
<option>--Select--</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
lz是不是它指控件中的选项?
var selIdx = new Array();
function selChange(sel)
{
for(i = 0; i < selIdx.length; i++)
if(selIdx[i] == sel.selectedIndex){
alert("You can not select this item.");
sel.selectedIndex = 0;
return;
} selIdx[selIdx.length + 1] = sel.selectedIndex;
sel.options[sel.selectedIndex].style.color = "#D3D3D3";
}
</script>
<select onchange="selChange(this)">
<option>--Select--</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>