Programming in javascript: HTML replaceWith function with PHP on newest questions tagged javascript – Stack Overflow
I am trying to execute this sentence in javascript:
$('#content').replaceWith("<div>" + <?php echo $tableau_Text?> + "</div>");
But is not working. It shows nothing. When I change the PHP code for something static like:
$('#content').replaceWith("<div>Hello World</div>");
it works perfectly.
My html #content definition is:
<div id="content">
<?php echo $show_menu;?>
</div>
Any idea?’ Thank you very much!!!
See Answers
source: http://stackoverflow.com/questions/11612543/html-replacewith-function-with-php
Programming in javascript: programming-in-javascript
Recent Comments