We are developing a flex component, which will appear only after user login. Now the problem is am using
if ($('#flashComponentId').length > 0)
$('#flashComponentId').remove();
to remove the flash component completely from the page. This is working perfectly fine in all browsers except IE
. I cant remove the parent div of the flash component as it has included other child divs. So how can i do remove the component completely in IE?
You can do this:
$("#containingDiv embed").remove();
$("#containingDiv object").remove();
JSFiddle: http://jsfiddle.net/DRxW4/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.