I have following JavaScript function to make some calculation with textboxes but when I call this function on textbox the it doesn\'t works. Here is my JS code
U
Your variables aren't numbers. They are strings, so addition just concatenates them together.
Cast them to integers:
var pkrusd = parseInt(document.getElementById('txtpkrusd').value, 10);
Or floats:
var pkrusd = parseFloat(document.getElementById('txtpkrusd').value);