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

163
Views
How to echo out php variable which is a div with multiple child div on specific id using JS or any other method?

I tried to echo out the divs on js such as

$("#id").append("<?php echo $var_with_multi_div;?>")

But since with div are printed on a new line the console gives error -

Uncaught SyntaxError: missing ) after argument list

So, how can I print the PHP variable on a specific element of the HTML page using JS? Is there any method to append as a child on an element without JS?

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!