This line of code is not working...
document.getElementById('txtCommissionBalance').innerText = valuefinal.toFixed(2);
Because of innerText ??
Please let me know where I am wrong.
Thank,
Printable View
This line of code is not working...
document.getElementById('txtCommissionBalance').innerText = valuefinal.toFixed(2);
Because of innerText ??
Please let me know where I am wrong.
Thank,
If you install Firbug and the developer toolbar for firefox, you should be able to step your code in the browser and see what the browser is referencing (both are firefox add-ons)
Isn't it "value" and not "innerText" you need to use to access a text fields text value?
It should be actually value, are you confusing yourself with innerHtml with innertext ?
change it to
Code:document.getElementById('txtCommissionBalance').value = valuefinal.toFixed(2);