I am using jQuery to add some dynamic content to a website.
I am attempting to create a new DOM element on-demand using the following code:
container = $('<div id="myContainer"></div>');
This works perfectly in Firefox and Safari, but Internet Explorer is generating an error. The IE error is: Object doesn't support this property or method
I know that jQuery is loading properly, and have tried both the jQuery
and $
syntax.
Any ideas as to what might be causing this?