javascript - JQuery PriceFormat and OnChange -
i'm using jquery priceformat plugin (http://jquerypriceformat.com/).
my code following:
$('#valor').priceformat({ prefix: 'r$ ', centsseparator: ',', thousandsseparator: '.', limit: 8, centslimit: 2 });
however, want capable of changing value of input while users type value. example, input i'm using priceformat in, product price. but, there input called taxes, example, dinamically changed price (let's tax 1% of price). want capable of changing tax value while user change product price.
how can this?
i have solved issued binding keyup event function this:
function calculartaxa(){ //code of function here } $("#valor").bind('keyup', calculartaxa);
hope someone. ;d
Comments
Post a Comment