I just want to know how can I display a javascript variable into html?
Below is my php code:
var duration = echo $postduration; ?>; <
var duration = echo $postduration; ?>;
Here's a way to add a DIV to a page with the content of the DIV being the value of your PHP var: