简体   繁体   中英

find image source to remove not working to remove in IE 7

IE 7 seems to ignore this code. Any ideas?

 $("img[src='/v/vspfiles/templates/GFAR NEW NAV/images/Bullet_SubCategory.gif']").remove();

The problem is most likely the spaces in the URL. On IE, the test may run against the URL-Encoded version ( GFAR%20NEW%20NAV ).

I would get rid of the spaces and try again.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM