title: Check textbox on specific format
body: <p>I have an issue.. I want to check a textbox for a specific format. </p>
  
  <p>I will explain it with an example:</p>
  
  <p>When the user types someting in a textbox. For example a phone number such as: 06-12345678</p>
  
  <p>If the user types the phone number correct, a popup comes up with a message such as: You've entered the phone number correctly.</p>
  
  <p>If the user types it incorrectly, a popup comes up with a message such as: You've entered the phone number incorrectly.</p>
  
  <p>I've already made a jsfiddle for the textboxes, but not for the phone number check.</p>
  
  <pre><code>&lt;input type="text" id="correct" value="06-12345678"&gt;&lt;br&gt;&lt;br&gt;
  &lt;input type="text" id="wrong" value="06 12345678"&gt;
  </code></pre>
  
  <p>Jsfiddle link: <a href="http://jsfiddle.net/t1Lswskg/2/" rel="nofollow">Jsfiddle</a></p>
  
  <p>I hope you can help me out</p>