下拉列表框中的选项问题 侠客们,下拉列表框的一个选项被选中后,下次就不能再选它了,怎么实现呢?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 屏幕分辨率问题 用了个jquery的floatdiv插件后在IE6下提示缺少对象啥毛病 怎么在ul创建5个li啊? JavaScript有什么好的入门书吗? 帮忙看看这个问题所在 急,在线等!!! 高分求个2级无刷新ASP联动代码?高手请进 在线等 用javascript求border padding marginr的值分别为以下两情况 一个初级的问题,关于通过ID获取设置表格属性 asp代码在<%@ Language=JavaScript %>页面如何写 一个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>