<script language="javascript">
function displytext()
{
var mylist=document.form1.listname;
if(mylist.options[mylist.selectedIndex].value==0)
document.form1.textname.style.display = "";
else
document.form1.textname.style.display = "none";
}
</script><form name="form1" action="" method="post">
<select name="listname" id="listname" onchange="displytext()">
<option value="1">test1</option>
<option value="2">test2</option>
<option value="0">other</option>
</select>
<input name="textname" type="text" id="textname" style="display:none " />
</form>
function displytext()
{
var mylist=document.form1.listname;
if(mylist.options[mylist.selectedIndex].value==0)
document.form1.textname.style.display = "";
else
document.form1.textname.style.display = "none";
}
</script><form name="form1" action="" method="post">
<select name="listname" id="listname" onchange="displytext()">
<option value="1">test1</option>
<option value="2">test2</option>
<option value="0">other</option>
</select>
<input name="textname" type="text" id="textname" style="display:none " />
</form>
解决方案 »
- 200分求助CURL设置HTTPHEADER上传文件问题!
- apache配置
- php高手请进!关于视频聊天程序的问题!
- 晕死,xp下apache2+php5+oracle9i连接的问题?
- 为何通过页面内嵌flash跳转到的页面无法检测$_SERVER['HTTP_REFERER']?
- 郁闷问题,服务器的原因吗???请大家帮忙
- help me, 如何在UNIX下发送HTML格式邮件?
- 在SESSION中保存了一个类,如何在页面上使用?
- 如何用php得到一个网络文件的大小!
- php mysql 多次执行
- 点击页面上的删除按钮,会弹出一个确认对话诓,这个怎么做啊??
- 请教:如何发现url输入错误,及转向错误页
判断选中,然后将display属性改为block