Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.unpriceFormat is not a function #89

Open
doubleprincez opened this issue Sep 17, 2019 · 0 comments
Open

.unpriceFormat is not a function #89

doubleprincez opened this issue Sep 17, 2019 · 0 comments

Comments

@doubleprincez
Copy link

doubleprincez commented Sep 17, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant