Skip to content

Instantly share code, notes, and snippets.

@vikbehal
Created June 7, 2019 21:26
Show Gist options
  • Save vikbehal/96e201cd4ffbb05388ecdca3a72d77b9 to your computer and use it in GitHub Desktop.
Save vikbehal/96e201cd4ffbb05388ecdca3a72d77b9 to your computer and use it in GitHub Desktop.
https://code.jquery.com/jquery-3.4.1.min.js
https://<web-app>.domain.com/sites/<siteurl>/SiteAssets/jquery.formatCurrency-1.4.0.min.js
$(document).ready(function () {
$('#' + amount).formatCurrency();
$("#" + amount).blur(function () {
$('#' + amount).formatCurrency();
});
});
//No currency symbol
$(document).ready(function () {
$('#' + amount).formatCurrency({ symbol: '' });
$("#" + amount).blur(function () {
$('#' + amount).formatCurrency({ symbol: '' });
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment