javascript - adding percentage to calculated form -


hope here can help. need form javascript auto calculates totals. have been messing around form script downloaded (hats off paul mcfedries) totals working fine need calculate tax (at 10%) , add sub total. have basic form working here: http://www.onsiite.com/html/onsiite_calc.html

i'm complete javascript beginner , don't have clue begin. can or show me way?

use when u populate final value... there nothing special it... jus use simple javascript final update of value

var total = round_decimals(order_total, 2); frm.total.value = total + ((10/100)*total); 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -