JSFiddle - React, Tailwind, and code Playground
by tanya_22
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.13/jquery.mask.js"></script>
<div id="test">
Money:
<input class="money" type="text" value="22222" />
</div>
<div id="test">
Phone:
<input class="phone_with_ddd" type="text" />
</div>
JavaScript
$.when( $.ready ).then(function() {
//
});
$('.money').mask('# ##0', {
reverse: true,
});
$('.phone_with_ddd').mask('(00) 0000-0000');
console.log($('.money').val());