有关下拉框和文本框的联动问题!高分送出!! 你用onchange时间判断,多加个文本框的层算了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><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=''>" <script>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> Infinite Scroll的使用问题 JS 动态添加Table 列样式没有效果 在线等 为什么会是死循环 求解 ajax 如何post 大量数据,求完整解决方案! 将字符串转换成对象: 纯小白 求帮助 求师傅 Ext 3.1 怎么重写 pagingtoolbar 隐藏刷新按钮? document.body.innerHTML 可以取得一个html页面中body部分的内容,怎样可以取得整个完整的html内容? Ext:右键点击树节点,为什么两个判断都返回false呢 easyui tree 单选怎么实现 阿信,请进来看一下:你的这个函数好像有点 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>