Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

165
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda