I am trying to convert textbox value on onblur event to a $
currency using jquery.formatCurrency-1.4.0.js
and my javascript function looks as follows :
$(document).ready(function()
{
$('.currency').blur(function()
{
$('.currency').formatCurrency();
});
});
Html:
<input type="textbox" id="currencyField" class="form-control currency" placeholder="Enter Price"/>
Can anyone help me please?