Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

174
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!