title: How to use pattern mask for JSP input?
body: <p>I'm using Spring MVC and dojo in my project.</p>
  
  <p>We need to have an input for phone number by given format like: (###) ###-####</p>
  
  <p>The phone number should automatically format as it's being typed.</p>
  
  <p>The validation should be inside the text field it self with placeholder per each digit separated by '-'.</p>
  
  <p>I tried to look over the web for an exist solution but I couldn't find any.</p>