title: Phone number validation bootstrap3
body: <p>I am trying to create a form in my website for people to able to put phone number and submit the form. But when I type alphabets instead of numbers, it still accepted. Is there anyway I can check phone validation using Bootstrap 3? </p>
  
  <p>Here is my code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;footer&gt;
    &lt;hr&gt;
    &lt;div class="container text-center"&gt;
      &lt;h3&gt;Subscribe for special offer&lt;/h3&gt;
      &lt;p&gt;Enter your information&lt;/p&gt;
  
      &lt;form action="" class="form-inline"&gt;
        &lt;div class="form-group"&gt;
          &lt;label for="name"&gt;Name&lt;/label&gt;
          &lt;input type="text" class="form-control" id="name" placeholder="Name" required="required"&gt;
        &lt;/div&gt;
        &lt;div class="form-group"&gt;
          &lt;label for="email"&gt;Email&lt;/label&gt;
          &lt;input type="email" class="form-control" id="email" placeholder="Email" required="required"&gt;
        &lt;/div&gt;
        &lt;div class="form-group"&gt;
          &lt;label for="phone_no"&gt;Phone Number&lt;/label&gt;
          &lt;input type="text" name="num" data-validation="number" data-validation-allowing="negative,number" input name="color" data-validation="number" datavalidation-ignore="$" required="required" class="form-control" id="phone_no" placeholder="Phone Number"&gt;
  
        &lt;/div&gt;
        &lt;button type="submit" class="btn btn-default"&gt;Subscribe&lt;/button&gt;
        &lt;hr&gt;
      &lt;/form&gt;
      &lt;!--End form--&gt;
  
      &lt;hr&gt;
  
    &lt;/div&gt;
    &lt;!--End Container--&gt;
  
  &lt;/footer&gt;</code></pre>
  </div>
  </div>
  </p>