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

198
Visualizações
Trying to remove jQuery with vanilla javascript and cannot find equivalent of $('element1').html(element2)

I am trying to remove all the jQuery from my code and I cannot find the vanilla javascript equivalent of this:

post_template=document.getElementById('post_template')
$("#modal-body").html(post_template);

I've tried the following, but it does not work:

post_template=document.getElementById('post_template')
document.getElementById('modal-body').html=post_template

If someone has a website that can show me all the methods of the getElementById object that would be super useful...Surprisingly all the documentation I've found doesn't explain all the options I can put after getElementById.

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