Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

100
Vistas
action of unbinding an input="submit" from some attributes

is there any identifier I can put in the form to link all its children with the "button" or "input submit"

For example, the default behavior of my html is: when I press submit input, both the "text" and "checkbox" fields will be reset/cleared to their default.

In this case, I would like that when clicking on "submit", only the "text" field would be applied by default (clean), while nothing would influence the "input" of the "checkbox" type.

At first, I thought that if I created two "" and separated them, the "submit" of the first "form" would not influence anything in the second "form", but this was not the behavior.

<section class="container">
        <div class="container__box">
            
            <h1>To-do list</h1>
            <form class="container__adicionar-Itens" id="adicionar">
                <input type="text" class="container__button"><input type="submit" value="Adicionar">
            </form>

            <form class="container__itens">
                <input type="checkbox" id="MarcarReuniao" class="container__input-itens"><label for="MarcarReuniao" class="container__label-itens">Marcar Reunião</label>
            </form>
        </div>
    </section>

about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda