[jQuery] Problem with .remove() in IE7
Hi,
I'm using jQuery 1.2.6.min.js on an intranet application. I have a
page that when loading, displays a "report loading" message with an
animated gif. This report loading stuff is located within a <div>
called "wait". When the document finishes loading, I want to remove
this div.
Here is an abbreviated form of my jQuery ready function:
$(document).ready(function() {
.... a bunch of code here unrelated to my div....
$("#wait").remove();
});
This works fine in Firefox 3 - the <div> is removed. In IE7, the
<div> is removed but I get a ubiquitous "Object required" error. If I
comment out this one line of code, I don't get any errors. I also
tried using hide() instead of remove(), but got the same error.
Any ideas about what I'm doing wrong?
Thanks,
Carl