Firefox doesn’t recognise innerText property. Below is the fix.
var AmountLabelControl = document.getElementById('lblAmount');
var amount;
if (AmountLabelControl.textContent) {
// Firefox...
amount = AmountLabelControl.textContent;
}
else if (AmountLabelControl.innerText) {
// IE...
amount = AmountLabelControl.innerText;
}
|
Thant Zin Oo