I have this working on chrome and firefox basically when the user clicks on a sub image it changes the main image by altering it's display property from hide to show. Here's my img elements.
<img id="lg1" src="http...
<img id="lg2" style="display:none" src="http...
<img id="lg3" style="display:none" src="http...
and my js looks like this:
$('#graph1').click(function() {
$("#lg1").css("display","inherit");
$("#lg2").css("display","none");
$("#lg3").css("display","none");
});
$('#graph2').click(function() {
$("#lg1").css("display","none");
$("#lg2").css("display","inherit");
$("#lg3").css("display","none");
});
$('#graph3').click(function() {
$("#lg1").css("display","none");
$("#lg2").css("display","none");
$("#lg3").css("display","inherit");
});
In IE I get this error:
Could not get the display property. Invalid argument.
Is there anyway I could alter my code to make it work with Chrome, FF and IE?
Thanks!
display: inline(ordisplay: block)?