title: How to Validate Email or Phone Number Using Single Input like Facebook
body: <p>How to validate Email or Phone Number Using Single Input? </p>
  
  <p>I like to have input value <code>xyz@gmail.com</code> OR <code>1234567890</code> anything else alert <code>"Invalid Email or phone number"</code></p>
  
  <p>Like Facebook Sign Up form </p>
  
  <pre><code>&lt;form&gt;
  &lt;input type="text" placeholder="Email or mobile number"  /&gt;
  &lt;button type="submit" &gt;Sign Up&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>