Relapsedâ„¢
New Member
I'm trying to get the background image of the div and afterwards to change it by adding gray prefix to the bg image name.Everything is working perfectly in chrome and firefox, but in IE the value of background image is \[code\]about-blank\[/code\]. Please help me?\[code\]var img= $("#nom_"+$(".nomination").attr('id')).css('background-image'); var image = img.split('/').pop(); var img1 = image.split(')',1); var img1 = "<|UP>/gray"+img1;\[/code\]the attr('id') is visible in IE the problem is with \[code\].css('background-image')\[/code\];but for IE I've changed it to\[code\] if($.browser.msie){ var id ="nom_"+$(".nomination").attr('id'); obj=document.getElementById(id); alert(obj.currentStyle.backgroundImage); }\[/code\]but again the returned value is 'about-blank'.