JSFiddle - React, Tailwind, and code Playground
by neal_fletcher
HTML
<script src="http://al2014.sb-studio.co.uk/wp-content/themes/awyrlas/js/jquery.price_format.2.0.min.js"></script>
<input type="text" name="example3" id="example3" value="">
<div class="test">£0.00</div>
<div class="test2"><div>
JavaScript
$('#example3').priceFormat({
prefix: '',
thousandsSeparator: ''
});
$("#example3").on("change keyup paste click", function () {
var otheramount = $('#example3').val(),
test = otheramount.replace(/\./g,'');
$('.test').html("£" + otheramount);
$('.test2').html(test);
});