0

i am trying to send php command from javascript using innerhtml but it send the command commented how can i fix that

document.getElementById('ThirdOption').innerHTML = "<?php DisplayLocation() ?>";

The result i got on html div is as following

<!--?php DisplayLocation() ?-->

0 Answers0