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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -