你用onchange时间判断,多加个文本框的层算了
解决方案 »
- 文件上传的问题
- 为什么如下脚本在IE下没问题,在发firefox5.0下面没反应呢?
- Comet应用时遇到问题,请大家帮忙看看怎么回事?
- |zyciis| 为什么Firefox的watch没有办法监控到我点击checkbox改变的checked呢?谢谢 有代码
- 假设我有一段非常长的字符串,我希望传到另外的一个页面去,请问如何操作
- [分享]JS+WMI操作注册表
- 使用jS代码循环添加tr
- 用javascript语句判断页面输入框的内容是数字¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥
- 怎样使得一个层可以呗随意拖动?
- 用iframe实现的菜单如何做,我不会用iframe,希望哪位指点小弟一下
- 阿信,请进来看一下:你的这个函数好像有点 bug
- 关于ListBox,这个代码怎么写
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 2</title>
<script>
function ttt(){
var i=0;
for(i=0;i<document.all.sele1.length;i++){
if(document.all.sele1[i].selected==true)
{ alert(i);
}
}
}
</script>
</head><body>
<select id="sele1" onchange="ttt()">
<option value="1">ttt</option>
<option value="2">bbb</option>
</select>
</body></html>
var o = document.getElementById("table1");
var trnew = o.insertRow;
var tdnew=trnew.inserCell;
tdnew.innerHTML="<input type='text' id=''>"
if (document.form1.1.selected)
{
document.form1.yintan.type=text
}
else
{
document.form1.yintan.type=hidden
}
</script>
<form name="form1" method="post" action="">
<select name="select">
<option selected id="1">a</option>
<option id="2">b</option>
</select>
<input type="text" name="textfield">
<input type="hidden" name="hiddenField">
</form>