openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.95k stars 532 forks source link

Add adapter plugin for jQuery #14

Open wjcrowcroft opened 13 years ago

wjcrowcroft commented 13 years ago

An adapter for jQuery would be rad - enabling you to specify $('#el').formatMoney() to format numbers in a given element.

Definitely implemented as a plugin/add-on as I want to keep the library dependency-free.

Any thoughts, please share them here!

Joe8Bit commented 13 years ago

It'd be great if you could use jQuery selectors, totally support this feature request.

wjcrowcroft commented 13 years ago

Yeah, it feels like it'd be a nice way to use it, especially with the addition of chaining.

This is definitely plugin territory though - definitely don't want jQuery dependence, (as much as I use jQuery all the freakin' time) so I'll probably give this a few weeks before it's done.

wjcrowcroft commented 12 years ago

This is now in the dev branch, awaiting some tests and potential improvements.

Petah commented 10 years ago

"I'll probably give this a few weeks before it's done"

3 years later.