Skip to content
James Pederson edited this page May 17, 2014 · 15 revisions

Getting Started with Accrue.js

  1. Include jQuery (recommend latest)
  2. Include jquery.accrue.min.js from the repository. This is the only file you need - the CSS is only for the demo page.
  3. Create a calculator div, select it, and call the accrue function on it. Like so:
<div class="calculator"></div>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="jquery.accrue.min.js"></script>
<script>
$(document).ready(function(){
    $(".calculator").accrue();
});
</script>