wondering if anybody can help a newbie? My code seems to work fine in Chrome but it doesn't display in IE.
The intention of the code is to show or hide a piece of text. This works fine in Chrome, but does not load correctly in IE10. Due to restrictions with the application I am using, I am unable to use javascript or any derivative.
Apologies if I have overlooked an article or post on this topic already, but I cannot see a relevant solution.
.answer,
#shown,
#hideaway:target {
display: none;
}
#hideaway:target+#shown,
#hideaway:target~.answer {
display: initial;
}
<a href="#hideaway" id="hideaway">Click here for text</a>
<a href="#shown" id="shown">Hide text</a>
<div class="answer">
<P>Text Goes Here</P>
</div>
Thanks in anticipation for any help you can provide!