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

253
Vistas
How to edit a button element that was added as an appendChildElement(). and convert it to a font awesome icon

The document was added as using javascript:

      const task_edit_el = document.createElement("button");
      task_edit_el.classList.add("edit");
      task_edit_el.innerHTML = "Edit";

Now this creates a button element with the inner html Edit. how do i change the inner html to a font awesome icon? since its not showing on the normal html page. it is manipulated to mount when a button is clicked.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You need to create an "i" element inside in the button scope, after add class and finally add this i element to button element using add child.

<button><i class="fa-thin fa-alarm-clock"></i> Alarm</button>

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