JSFiddle - React, Tailwind, and code Playground
by rjurd
HTML
<script src="http://cloud.github.com/downloads/digitalBush/jquery.maskedinput/jquery.maskedinput-1.3.min.js"></script>
<input id="phone" type="text"/>
JavaScript
jQuery(function($){
$.mask.definitions['~']='[ 0-9]';
$("#phone").mask("(9~~) 9999-9999");
});