日期:2014-05-16  浏览次数:20336 次

请高手帮忙写一个统计金额的效果
<!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>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
var i = 0;
$('#btn_zj').click(function(){

i +=1;
$('#hj').before('<tr><td>'+(i+1)+'</td><td><input type="text"  name="info['+i+'][project]" class="H_cc_input_set"  /></td><td><input type="text"  name="info['+i+'][summary]" class="H_cc_input_set"  /></td><td><input type="text"  name="info['+i+'][price]" class="H_cc_input_set money_price_to" onkeyup=\'money_tongji(this)\'  /></td><td><input type="text"  name="info['+i+'][remark]" class="H_cc_input_set" /></td><td><a class="del" href="javascript:" title="删除"></a></td></tr>');
delTr();
})
delTr();
})
function delTr(){
$(".del").click(function(){
$(this).parent().parent().remove();
})
}
</script>
<style type="text/css">
html, body { margin: 0; padding: 0; background-attachment:fixed;}
html{_background-image:url(about:blank);_background-attachment:fixed;}/* 修正IE6振动bug */
h1, h2, h3, h4, h5, h6, blockquote, pre, a, abbr, acronym, address, cite, code, img, small, strike, strong, em, sub, sup, tt, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, section {  border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; text-align: left; }
h1, h2, h3, h4, h5, h6, blockquote, pre, a, abbr, acronym, address, cite, code, img, small, strike, strong, em, sub, sup, tt, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, caption, tbody, tfoot, section , p{ margin:0;padding: 0;}
table { border-collapse: collapse; border-spacing: 0; }
img{border:0}
ol, ul { list-style: none; }
ul{ display:inline-block;}
body { width: 100%;margin: 0 auto;font: normal 12px/18px 'Microsoft YaHei','微软雅黑', arial, sans-serif; text-shadow: 0 0 1px rgba(0,0,0,0.01); color: #555; background:#ECF0F1}
h4 {font-weight: bold; color: #222;font-size: 15px; }
a {color: #003288;text-decoration: none; font-weight:normal;font-size: 12px; }
a{hide-focus: expression( this.hideFocus=true ); outline: none;}
a:hover { text-decoration:none; }
input::-ms-clear{display:none}    /*解决IE10 默认的input 出现XX的问题*/

.lizh