Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).on("change",".chilean-format",function() {
- var idRealInput = $(this).data("real-input"); // < input type= "x" class = "chilean-format" data-real-input="#id-real-input" />
- var valueFormatedInput = $(this).val();
- var numeralFormatedBackEnd = numeral(valueFormatedInput);
- $(idRealInput).val(numeralFormatedBackEnd.value);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement