I have made a function here:
function locationOfVideo(){//Outputs video location div according to post text
var ytVideoDiv = '<div class="youtube-video"><div id="<?php echo $divName; ?>-video"></div></div>';
$j('#main .content:contains("<--video-->")').replace('<--video-->', ytVideoDiv);
}
I thought this would work, but I am sorely mistaken and a bit tired. Anyways, what am i doing wrong here?
Don’t use
<--video-->in your html, change to some other like{video}.Then do it with: