I'm having a problem with jQuery append just in Internet Explorer 8 (I didn't check earlier versions). On launch (in a ready() function) I append a div to my container div. This doesn't work in IE8 though, no div is added. I checked this by returning the length of $('div#options') in the console. Why isn't this working?
This is my code to append the div:
$('div#container').append('<div id="options"><a href="#" id="delete"><a href="#content" id="edit"></div>');
I also tried to use prepend() and appendTo(), but they didn't work either... Can anyone help me?
Thanks!