I need This script to do all arithmetic functions....for
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>jQuery Calculation Plug-in</title>
<!---// load jQuery v1.3.1 from the GoogleAPIs CDN //--->
<script type="text/javascript" src="calculation.plugin_files/jquery.js"></script>
<!--// load jQuery Plug-ins //-->
<script type="text/javascript" src="calculation.plugin_files/jquery_003.js"></script>
<script type="text/javascript" src="calculation.plugin_files/jquery_002.js"></script>
<script type="text/javascript">
var bIsFirebugReady = (!!window.console && !!window.console.log);
$(document).ready(function (){
// automatically update the "#totalSum" field every time
// the values are changes via the keyup event
$("input[name^=sum]").sum("keyup", "#totalSum");
// this calculates the sum for some text nodes
$("").click(
function (){
// get the sum of the elements
//update the total
$("#totalTextSum").("$" + sum.toString());
}
);
}
);
function recalc(){
$("").calc(
function ($this)
{
var sum = $this.sum();
}
);
}
</script>
<form action="" method="post" id="">
<p>
Numbers:
<input name="sum" value="3" size="2" type="text">
<input name="sum1" value="2" size="2" type="text">
Sum:
<input name="totalSum" id="totalSum" value="" size="2" readonly="readonly" type="text">
</p>
</body></html>