Munny Munny - 3 months ago 27x
Ajax Question

formatCurrency is not a function

I am trying to convert textbox value on onblur event to a

currency using
and my javascript function looks as follows :



<input type="textbox" id="currencyField" class="form-control currency" placeholder="Enter Price"/>

Can anyone help me please


I think your code work fine, you have just to add the jquery-formatcurrency library :

Or download it will be better since is being deprecated like @charliefl mentioned in comment bellow.

See the implementation in fiddle HERE.