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

164
Views
Cómo quitar el borde de los campos del formulario usando un botón

Cómo hacer eso después de enviar el formulario y mostrar en lugares donde había campos de formulario los datos ingresados que provienen de estos campos de formulario y eliminarlos. Quería usar preventdefault ()

 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <form novalidate> <label for="imie">Name</label> <INPUT type="text" id="firstName"><BR> <div id="first-name-err"></div> <INPUT type="submit" value="Send"> </form> <script> var firstName= document.getElementById("firstName"); var firstNameValidation=function(){ firstNameValue=firstName.value.trim(); validFirstName=/^[AZ]{1}[az]{2,}/mg; firstNameErr=document.getElementById('first-name-err'); if(firstNameValue=="") { }else if(!validFirstName.test(firstNameValue)){ firstNameErr.innerHTML="...h"; }else{ firstNameErr.innerHTML=""; return true; } } firstName.oninput=function(){ firstNameValidation(); } </script> </body> </html>
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!