I have a JQuery script that hides a div on my web page until a button is clicked. It then eases in a window to display the content of the hidden div. If I put a static image in the div it works fine. But if I put a piece of JavaScript in the div to execute a video script it does not work. It appears that the JQuery script will not execute the JavaScript for some reason. But if I remove the JQuery Script and allow the div to be displayed when the page is loaded it again works fine.

Does anyone know why this would happen and offer a solution. I am happy to disclose the JQuery Script, as well as the CSS and HTML code if you need to see it. I am just not sure if the rules of this site actually permit doing that.

Thanks for your help.