Thanks for the reply. But can you show me the way to do calculation? Because I have to retrieve data from database for calculation. For example, the data that I retrieved from database is $a (php), then I have to use this value in javascipt calculation.
for example, this is the code that I have to write in calculate.js file.
-
var payment = document.getElementById("paymentA").value = (document.getElementById("paymentB").value * ($a/100));
-
although I know this can't work but this is something that I have to do with. So do you have any ideas or example on this? Thanks in advance.