JQuery Calculation Plug-in (v0.4.04)
The Calculation plug-in is designed to give easy-to-use JQuery functions for commonly used mathematical functions.
This plug-in will work on all types of HTML elements—which means you can use it to calculate values in <td> elements or in <input> elements. You can even mix and match between element types.
Numbers are parsed from the element using parseNumber() method—which uses a regular expression (/-?\d+(,\d{3})*(\.\d{1,})?/g
) to parse out the numeric value. You can change the regular expression that's used to determine what's consider a number by changing the default regular expression.
Download
Download the plug-in:
jquery.calculation.js
jquery.calculation.min.js