You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When used in function, I get the error " specialBonusAmount.unpriceFormat is not a function", when i tried to get the price from the input field and also return it back to the display div
$("#specialBonusAmount").priceFormat({
prefix: '₦',
centsSeparator: '.',
thousandsSeparator: ','
});
function addSpecialBonus() {
let specialBonusAmount = $("#specialBonusAmount");
specialBonus = specialBonusAmount.unpriceFormat();
console.log("special "+specialBonus);
let amountDisplay = $("#amountDisplay");
amountDisplay.text(specialBonus).priceFormat();
}
please what is the right way to carry out the above function?
The text was updated successfully, but these errors were encountered:
When used in function, I get the error " specialBonusAmount.unpriceFormat is not a function", when i tried to get the price from the input field and also return it back to the display div
please what is the right way to carry out the above function?
The text was updated successfully, but these errors were encountered: