0

I'm beginner at PHP and Javascript so I think it's a stupid question. I have search but can't find the answer. How can I echo the value from id's HMTL tag?

Ex: <div id="test">Test</div>

<?php echo id?> ???

Echo the id's value?

I get the id's value from javascript

document.getElementById("test").innerHTML = "abc";
Huệ Vũ
  • 35
  • 7

0 Answers0