Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

363
Views
Valide la identificación del correo electrónico al presionar una tecla en jquery

Estoy tratando de validar la identificación del correo electrónico al presionar una tecla. Cuando el usuario ingresa una identificación de correo electrónico no válida, debe mostrar un mensaje, ingrese una identificación de correo electrónico válida. Si el usuario ingresa el correo electrónico (abc@gmail), debe mostrar el mensaje, ingrese el correo electrónico correcto. Si el el usuario ingresa (abc@gmail.com o co.in) debería permitir ingresar el siguiente campo Hay algo mal en la expresión regular que ingresé. El correo electrónico no se valida aquí está el script

 <script type="text/javascript"> $(function() { $("#sEmail").bind("keypress", function (event) { if (event.charCode != 0) { var regex = new RegExp("^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"); var key = String.fromCharCode(!event.charCode ? event.which : event.charCode); if (!regex.test(key)) { alert("Please enter Only email"); event.preventDefault(); return false; } } }); }); </script>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!