I’m having a peculiar problem with some JavaScript on my website that I cannot seem to figure out and fix. The problem stems from Internet Explorer’s inability to expand questions in the FAQ section of my website ( link: http://phonesforyourcharity.com/faq.php ). Of course the expand function works in Firefox and Safari.
The <script type=“text/javascript” src=“js/faq.js”></script> in the source
refers to:
$(function(){
$("dd.answer")
.hide();
$("dl.faq dt")
.append("<br /><a href='#' title='Reveal Answer' class='answer-tab'>Answer</a>");
$(".answer-tab")
.click(function(){
$(this)
.parent().parent()
.find("dd.answer")
.slideToggle();
return false;
});
});
Any help would be greatly appreciated!