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

140
Vistas
If "THIS" + "THIS" clicked, do this (in javascript)

I wanna do a simple thing but i do not find the correct way to do it like u saw in the title. I have some buttons which are selectionnable, i just wanna say that if one of them+ another one is selected, we cant select another one (or 2). Theorically it's really simple i think, but i wanted to have some ideas instead of doing something useless which is half working.

enter image description here

I'll try to schematize : All theses squares are divs with text in and style. When you click on them, (that's what i called "selected") they're switching color.

So for example i want that if we click on "1" + "2" : we can click only on "A" + "C" OR "A" + "D". (Not A+B).

That's the only thing i wanted to understand. I hope that you'll understand.

Thanks a lot, Cordially Zartex

about 4 years ago · Juan Pablo Isaza
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