I have Firebug Lite running in IE9 testing my website and for some reason when I try to run a simple command to remove a div it returns the error “TypeError: Object expected”. Here is what I am running:
$("#drag-hoverbox_you").remove();
This works perfectly in Firefox and Chrome. A div with the id “drag-hoverbox_you” definitely exists…
The problem was that I was using an older version of jQuery-UI to make my windows draggable. The error was being returned because there was a flash object inside of the draggable DIV that I was trying to remove. The newer version of jQuery-UI won’t even allow you to make DIVs that contain flash objects draggable. So I can now delete div containers, but I’m unable to make them draggable. Thanks for everyones’ help!