Extend Bootstrap's components—now with 12 custom jQuery plugins.
Download Bootstrap Form Helpers
For simple formatting of phone numbers, include bootstrap-formhelpers-phone.format.js and bootstrap-formhelpers-phone.js once alongside the other JS files.
Simple example for formatting a phone number in input text
<input type="text" class="input-medium bfh-phone" data-format="+1 (ddd) ddd-dddd">
Simple example for displaying a formatted phone number
<span class="bfh-phone" data-format="+1 (ddd) ddd-dddd" data-number="15555555555"></span>
Example for formatting a phone number based on a country
<input type="text" class="input-medium bfh-phone" data-country="US">