How do i echo the following HTML and PHP in jQuery to make it render as html?
<script src="<?php bloginfo('template_directory'); ?>/js/carousel.js"></script>
How do i echo the following HTML and PHP in jQuery to make it render as html?
<script src="<?php bloginfo('template_directory'); ?>/js/carousel.js"></script>
收起
You can save it inside a variable like
var script = "<?php bloginfo('template_directory'); ?>" + "/js/carousel.js";
Watch out for the quote you use.
报告相同问题?