Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
HI,
I want to change the images after clicking on div..
it works fine for Chrome and Mozilla but it is not working in IE9
Please suggest,

Thanks in advance..
Posted
Updated 4-May-15 21:45pm
v2
Comments
Can you create a jsfiddle demo?
Rashmi Sutar 5-May-15 3:38am    
ok..
Rashmi Sutar 5-May-15 3:43am    
I have created jsfiddle demo - https://jsfiddle.net/7ej24jbb/
It is not showing anything on the result box. How can I test?
Rashmi Sutar 5-May-15 5:22am    
Now the code is updated..
But it works in jsfiddle but not at my sharepoint site.

It perfectly works on IE 9, I tested. But you mentioned Sharepoint site. I am not sure about that. May be some script is blocked or something. Else jQuery is not referred correctly / conflicting with some other version.

So my suggestion is that, please go to IE browser F12 and see the console if there are any errors listed or not. You will get the hint.
 
Share this answer
 
Hi,

Earlier I had used "background-color:transparent!important;" css to the div, then div click event didn't worked in ie9

but now I have used "background-Red!important;"

It works fine for me, so this is issue associated with transparent background.

Thanks.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900