Munny Munny - 1 year ago 142
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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download