超小问题,请大家帮我看看 document.getElementById("txtmoney").value="+money+";这个语法不对吧document.getElementById("txtmoney").value= money; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不好意思,我的是个表格pro_id pro_price pro_amount 1 5.55 3 2 5.00 6 .. .... ...要计算合计. function Sum(obj1,obj2,obj3){var price=obj1.value;var amount=obj2.value;var total=parseFloat(price)*parseFloat(amount); //如果不能确保值为整数是,不要使用parseInt()obj3.innerText=total;var money= total; //SUM不能用document.getElementById("txtmoney").value=money; 改为这个试试document.all("txtmoney").setAttribute(value, money); 忘了加个双引号document.all("txtmoney").setAttribute("value", money); document.getElementById("txtmoney").value=money; Extjs4如何实现下拉菜单、选项卡功能? 框架页如何在导航中标记当前页 求教一个js的正则式 js文件动态加载 如何在HTML中用JS嵌入asp文件 请教:树型菜单打开时是开的,怎让它打开时是关的呢? 请问一个关于下拉菜单的问题 大家帮一下:求可拖动窗口代码,就是层定义的那种。 简单问题 如何在提交之后不弹出提交后的页面?? 打印的时候出现网址,怎么去掉它呢? 正则,防止用户恶意输入大量回车2
我的是个表格
pro_id pro_price pro_amount
1 5.55 3
2 5.00 6
.. .... ...
要计算合计.
{
var price=obj1.value;
var amount=obj2.value;
var total=parseFloat(price)*parseFloat(amount); //如果不能确保值为整数是,不要使用parseInt()obj3.innerText=total;
var money= total; //SUM不能用
document.getElementById("txtmoney").value=money;
document.all("txtmoney").setAttribute(value, money);
document.all("txtmoney").setAttribute("value", money);