-
Notifications
You must be signed in to change notification settings - Fork 39
Interest Comparison Calculator
James Pederson edited this page May 17, 2014
·
1 revision
Grabs four values from the form, and returns the savings in interest between the two loans. Needs an amount, term, rate, and comparison rate. The comparison rate would generally be provided in a hidden form element.
$(".calculator-compare").accrue({
mode: "compare"
});
Plugin options allow you to customize the output of the calculation results.
$(".calculator-compare").accrue({
mode: "compare",
// set the result output element
response_output_div: ".results",
// set the response format
response_compare: "Save $%savings% in interest!",
// set the error text
error_text: "Please fill in all fields.",
});
See the plugin options to find out more about how to customize the output or change other settings.
See it in action at jpederson.com/Accrue.js. Built with care for free by James Pederson.