回复:(madpbpl)请问zhulei1978,如果这个用js来写,...
<html><head>
<script language="Javascript">
<!--
function ch(){
var nm1=document.form1.shuliang.value;
var nm2=document.form1.danjia.value;
var nm3=nm1*nm2;
document.form1.jine.value=nm3;
}
//-->
</script>
</head>
<body>
<form name="form1">
数量:<input type="text" name="shuliang" value=""><br>
单价:<input type="text" name="danjia" value=""><br>
金额:<input type="text" name="jine" value=""><br>
<input type="button" onclick="ch()" value="提交">
</form>
</body></html>