test
test

Reputation: 18200

jQuery append() does not working in IE

I am trying to append an image to DIV and it works on ALL major browsers EXCEPT Internet Explorer.

I am testing this on IE7. Maybe IE7 DOESN'T like to do append()?

Upvotes: 0

Views: 3296

Answers (2)

Mo Valipour
Mo Valipour

Reputation: 13496

I remember I had similar issue in IE with append(). Try to use appendTo() instead i.e.:

instead of:

parent.append(element);

use:

element.appendTo(parent);

Upvotes: 1

Amr Elgarhy
Amr Elgarhy

Reputation: 68912

Sure we need to see some code to give you good answer,
But since it is not working on just IE7 so I can smell that there is a missed closing html tag in the page or the html you are trying to append or append to.

Upvotes: 4

Related Questions