javascript - How can we subtract bill amount from account balance in a same table onclicking pay button -


this image has table having account balance , bill amount , pay button. on clicking pay button values should subtracted , final account balance should updated in table.

offhand i'd want write like:

account_balance -= bill_amount; 

...and display new account_balance.

you might need modify syntax of depending on whether you're doing in java, javascript, or jsp. might done on server side , require page refresh, or maybe in ajax call... or maybe it's few lines of javascript update what's being displayed on page. possibilities endless.


Comments

Popular posts from this blog

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -