bernat / best_in_place

A RESTful unobtrusive jQuery Inplace-Editor and a helper as a Rails Gem
http://blog.bernatfarrero.com/in-place-editing-with-javascript-jquery-and-rails-3/
1.2k stars 571 forks source link

Update a total after changing a number with bip #502

Open goodbeardigi opened 9 years ago

goodbeardigi commented 9 years ago

Hi,

I'm creating a budgeting app, and i'm using best in place to edit values, which is working fine. But I want the values changed with bip to be reflected in a total that's shown.

For example I have a page displaying different outgoings I have: Outgoing 1: £10 Outgoing 2: £20 Total: £30

When I change the value of outgoing 1 or 2, I want the total to also be updated. So if I change Outgoing 1 to £5, the total should update to become £25.

How can I achieve this?

Thanks, James,