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

179
Views
How to remove the border of fields from the form using a button

How to do that after sending the form and display in places where there were form fields the entered data that come from these form fields and delete. I wanted to use 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=/^[A-Z]{1}[a-z]{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!