怎讓textbox隱藏 怎讓textbox隱藏,謝謝 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 OnLoad時讓textbox隱藏,之後怎樣將textbox顯示出來,謝謝 <form name="foo"><input type="text" name="f1" style="display:none" /></form><a href="#" onclick="showF1(); return false;">显示</a><script>function showF1() {document.foo.f1.style="display:inline";}</script. <body onload="document.getElementById('hidebox').style.display=''"><input type="text" style="display:none" id="hidebox"></body> <script language="javascript">function hidd(){document.getElementById("aa").style.display="none";}function show(){document.getElementById("aa").style.display="";}</script><body onload="hidd()"><form id="form1" name="form1" method="post" action=""> <input type="text" name="aa" id="aa" /> <input type="button" name="button" id="button" value="按钮" onclick="show()" /></form></body> button要送出表單在同一頁,哪aa怎樣顯示出來,謝謝 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>無標題文件</title></head><script language="javascript">function hidd(){document.getElementById("aa").style.display="none";}function show(){document.getElementById("aa").style.display="";}</script><body onload="hidd()"><form id="form1" name="form1" method="post" action=""> <input type="text" name="aa" id="aa" /> <input type="submit"name="button" id="button" value="按钮" onclick="show()" /></form></body></html>OnLoad時讓textbox隱藏,之後怎樣將textbox顯示出來,謝謝 submit可以不reload網頁嗎?有其他方法解決嗎?效果是OnLoad時讓textbox隱藏,之後讓textbox顯示出來是經由按鍵讓它顯示和按鍵可以submit謝謝 搂主是不是要这个效果?<script>function submitForm() { document.form1.submit();}function showTextBox() { document.form1.textbox.style.display = 'inline'; document.form1.button.value = 'Submit';}function buttonClicked() { if ('none' == document.form1.textbox.style.display) { showTextBox(); } else { submitForm(); }}</script><form id="form1" name="form1" method="post" action="test.php"> <input type="text" name="textbox" id="textbox" style="display:none;"/> <input type="button" name="button" id="button" value="Display Textbox" onclick="buttonClicked()" /></form> 学习php 安装Apache,localhost:8080打不开,显示“无法显示该网页”急。。 如何参与php开源项目 php 字符串 按位异或 函数 word_wrap,可以对utf-8中英文混排的字符串按定宽(像素)分割 帮忙怎么样写这个sql语句啊? 请教一个读出<td></td>间字符的正则表达式! mkdir("testing")问题求解 mysql 遇到特殊字符,造成了数据不全 php连接不上sql2012 php解析xml, xml必须是文件吗 免费空间 福娃免费空间
<input type="text" name="f1" style="display:none" />
</form>
<a href="#" onclick="showF1(); return false;">显示</a>
<script>
function showF1() {
document.foo.f1.style="display:inline";
}
</script.
<body onload="document.getElementById('hidebox').style.display=''">
<input type="text" style="display:none" id="hidebox">
</body>
<script language="javascript">
function hidd()
{
document.getElementById("aa").style.display="none";
}
function show()
{
document.getElementById("aa").style.display="";
}
</script>
<body onload="hidd()"><form id="form1" name="form1" method="post" action="">
<input type="text" name="aa" id="aa" />
<input type="button" name="button" id="button" value="按钮" onclick="show()" />
</form>
</body>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
</head>
<script language="javascript">
function hidd()
{
document.getElementById("aa").style.display="none";
}
function show()
{
document.getElementById("aa").style.display="";
}
</script><body onload="hidd()"><form id="form1" name="form1" method="post" action="">
<input type="text" name="aa" id="aa" />
<input type="submit"name="button" id="button" value="按钮" onclick="show()" />
</form>
</body></html>
OnLoad時讓textbox隱藏,之後怎樣將textbox顯示出來,謝謝
有其他方法解決嗎?
效果是OnLoad時讓textbox隱藏,之後讓textbox顯示出來是經由按鍵讓它顯示和按鍵可以submit
謝謝
function submitForm() {
document.form1.submit();
}function showTextBox() {
document.form1.textbox.style.display = 'inline';
document.form1.button.value = 'Submit';
}function buttonClicked() {
if ('none' == document.form1.textbox.style.display) {
showTextBox();
}
else {
submitForm();
}
}
</script><form id="form1" name="form1" method="post" action="test.php">
<input type="text" name="textbox" id="textbox" style="display:none;"/>
<input type="button" name="button" id="button" value="Display Textbox" onclick="buttonClicked()" />
</form>