Skip to content
A simple plugin for doing simple inline calculation inside any <input>
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
index.html
jquery.calculadora.css
jquery.calculadora.js
jquery.calculadora.min.css
jquery.calculadora.min.js
jquery.calculadora.min.js.map

README.md

jQueryCalculadora

A simple plugin for doing simple inline calculation inside any <input>

Always loved to make simple calculations inside any number textbox on MS Money, now you can do it with jQuery also. I skipped showing the calculator, because it will create big trouble maintaining the focus in the input, but show a nice ticket with the past operations.

This is my first jQuery plugin and first GitHub project, so have mercy :)

Demo

Demo

Gif Demo

Options

  • decimals Number of decimals to show in the ticket and in the result value. Default is '2'
  • useCommaAsDecimalMark If true, use the comma to parse the numbers and to show the values. Default is 'false'

Usage

$(function () { $("input").calculadora({decimals: 0, useCommaAsDecimalMark: false}); })
You can’t perform that action at this time.