Inserting javascript with jQuery .html
- by Andrew Appleby
I'm experiencing an issue with a website I'm working on, where I originally believed I could simply replace $("main").html('THIS') which was originally code for a flash object, with a new and improved HTML5/Javascript version.
The original code:
$("#main").html('<div style="height: 100%; width: 100%; overflow: hidden;"><object…