title: how to validate either email or mobile in same input field?
body: <p>I have coded not empty on fields. how do i check that email is valid or either mobile number is  valid one that too us phone number. </p>
  
  <pre><code>if(mob_or_email==""){
  
                  document.getElementById('busp_email').innerHTML="Mobile/Email required";    
                  $("#busp_email").removeClass('field_validation_error hidden');
                  $("#busp_email").addClass('field_validation_error');
                  $("#busi_name").css("color","#f42156");
  
      }
  
      if($('#login_password').val()==""){
  
                  document.getElementById('logp_pwd').innerHTML="Password required";  
                  $("#logp_pwd").removeClass('field_validation_error hidden');
                  $("#logp_pwd").addClass('field_validation_error');
                  $("#log_pwd").css("color","#f42156");
      }
  </code></pre>