当光标还在text域的时候,你可以按提交按钮啊,反正你一次只能提交一个form
解决方案 »
- javascript动态创建两行一列表格
- 为什么formpanel不能显示3行?
- 如何用正则,从第一张图片中提取第一张
- 求个脚本,点击去数的...有点难度。
- 在JS中怎么调用CLASS类中的方法,这个方法中传入的参数是从下拉列表中得到的,返回值输出到文本框
- javascript 使用 try catch 不象意料中的情况
- 可伸缩框架的问题!
- 一个很挑战的JavaScript的问题!!!!!!!!!!!!!
- 在网页里如何屏蔽掉右键功能?
- 一个jquery easyui后台返回值问题?
- jcript&access&onmouseover>>>>>急急急急,在线等~~~~
- 为什么文本框输出总是undefined
这段代码里面的这句:
this.form.submit2.disabled=true;this.form.submit3.disabled=true;
使提交按钮失效,你要想不失效就不要这句即可
bzscs(沙虫 湖南找工作) 多谢!!
可当我按下提交按钮时,没有提交,状态:提交按钮一直按着,好像死机一样!!
请再指点!!to:
VisualSW(程序员和钳工是一个工种)
多谢!!
可我现在需要这个功能!!不好意思!!to:
ydr2002(killzhfkiller)去掉不行啊,我就是想只有一个提交按钮可以按啊!!
patchclass(黑翼) 不行啊!!
问题没解决,请大家帮忙!!
johnsuna(缘来是e)
我不能改名的,必须一样!!
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document"><title>New Page 2</title>
</head>
<script language=javascript>
var theCurrentFocusForm=null;
function changeCurrentFocusForm(formObj)
{
if(formObj==theCurrentFocusForm) return;
if(theCurrentFocusForm!=null)
{
theCurrentFocusForm.submit2.disabled=true;
theCurrentFocusForm.submit3.disabled=true;
}
theCurrentFocusForm=formObj;
theCurrentFocusForm.submit2.disabled=false;
theCurrentFocusForm.submit3.disabled=false;
}</script>
<body onload="document.forms[0].ysjg.select();document.forms[0].ysjg.focus();">
N个FORM(所有内容都一样),N不定,从数据库中取值,怎么样才能按到提交按钮??<br>
现在的只要光标一离开name为ysjg的text框,提交按钮就失效了??<br>
应改怎么改?
多谢!!
<form name="form1">
<input type=submit value="提交" name="submit2" onclick="alert('提交')" disabled>
<input type=button value="dfasf" onClick="window.open()" name="submit3" disabled>
<input type="text" name="ysjg" size="20" maxlength="30" onfocus="this.style.backgroundColor='#FFFFFF';changeCurrentFocusForm(this.form);" onblur="this.style.backgroundColor='#C0C0C0';" style="background-color: #C0C0C0;color:rgb(0,0,0);" value="adfaf">
</form><form name="form1">
<input type=submit value="提交" name="submit2" onclick="alert('提交')" disabled>
<input type=button value="dfasf" onClick="window.open()" name="submit3" disabled>
<input type="text" name="ysjg" size="20" maxlength="30" onfocus="this.style.backgroundColor='#FFFFFF';changeCurrentFocusForm(this.form);" onblur="this.style.backgroundColor='#C0C0C0';" style="background-color: #C0C0C0;color:rgb(0,0,0);" value="adfaf">
</form><form name="form1">
<input type=submit value="提交" name="submit2" onclick="alert('提交')" disabled>
<input type=button value="dfasf" onClick="window.open()" name="submit3" disabled>
<input type="text" name="ysjg" size="20" maxlength="30" onfocus="this.style.backgroundColor='#FFFFFF';changeCurrentFocusForm(this.form);" onblur="this.style.backgroundColor='#C0C0C0';" style="background-color: #C0C0C0;color:rgb(0,0,0);" value="adfaf">
</form>
</body></html>