So, I had this jquery working just fine and then I put it into wordpress. I’ve double checked to see if I copied and pasted my original code correctly and I believe that I did. Any suggestions?
http://newstartlaw.com/bankruptcy/
I’m going to look at it one more time, but any pointers would be helpful.
Here’s what I’m seeing in your HTML code
<p><!--faq_question--></p>
<p> </br></p>
<p class="BUTTON">
<p> <a class="ViewAnswerButton"></p>
<p> </a></p>
<p> <a class="HideAnswerButton"></p>
<p> </a></p>
And here’s what I’m seeing in your script.
$('.BUTTON').click(function(){
...
});
Paragraphs can’t wrap each other, so what you’ve done there doesn’t seem to be capable of working.