title: html format text field as phone number
body: <p>I have an <code>&lt;input&gt;</code> field that is generated via jQuery(just a call to backend which is returning HTML and updating current page without reload), and I need to show proper formatted phone numbers (pure integers). For example, an integer 1234123235 should be formatted as +1 (234) 123-235</p>
  
  <p>I tried:</p>
  
  <pre><code>&lt;input type='tel' pattern='[\+]\d{2}[\(]\d{2}[\)]\d{4}[\-]\d{4}' title='Phone Number (Format: +99(99)9999-9999)' value="12312312123"&gt;
  </code></pre>
  
  <p>But it doesn't work. How can I format this field as telephone number?</p>