<input type="text" name="aa" id="aa" onchange="cc.value=this.value+bb.value">
<input type="text" name="bb" id="bb" onchange="cc.value=this.value+aa.value">>
<input type="text" name="cc" id="cc">
<input type="text" name="bb" id="bb" onchange="cc.value=this.value+aa.value">>
<input type="text" name="cc" id="cc">
解决方案 »
- jquery 主窗口无法操作子窗口的问题
- 求助大家 IE9 火狐 都没问题。 IE8 IE7 出了点问题。
- extjs中,gird的rowediting插件,如何获取cancel事件
- 菜鸟求教javascript与本地ACCESS连接读取问题
- 刚才写了一个算法,大家提提意见
- [顶有分]关于XMLHTTP 4.0以下版本的onreadystatechange只触发一次的问题。
- javascript事件问题?
- 问一个入门级问题:“new”用关闭吗?
- 强贴呵: iframe如何根据网页内容的多少自动伸展?
- 不知道img标签具不具有如下属性?在线等
- 关于表单中checkbox的验证!高分求助!
- 急问为什麽在window2000系统下可以使用的javascrip函数,在windows98就报错,如何修改?
<input onpropertychange="cc.value=parseFloat(aa.value)+parseFloat(bb.value)" name="bb" value="0">
<input name="cc" value="">
<input type="text" name="aa">
<input type="text" name="bb">
<input type="text" name="cc">
<script>
function add()
{
document.all.cc.value=parseInt(document.all.aa.value)+parseInt(document.all.bb.value);
setTimeout('add()',100)
}</script>