$(document).on('keyup', '.test', function() { var x = $(this).val(); $(this).val(x.toString().replace(/,/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",")); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)