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

127
Vistas
Changing css class with classList.add not working

I wanna add a class that makes a button looks disabled with calssList.add, I'm having hard time snice yesterday with this since i can't see any difference on the button, even if i see in the inspector that the button is having the css class that i wanna add, it doesn't make any changes.

###js

if (numberCheckboxChecked >= 3 && selectedLayout=='Layout1') {
  alert("You can't have more than two articles in this layout");
  saveButton.disabled = true;
  saveButton.classList.add("fl-button-disabled");

css

.fl-settings-save.fl-button.fl-button-large.fl-button-disabled{
  pointer-events: none;
  color: #666666;
  background-color: gray;
  border: 1px solid gray;
}
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