I did this just by putting an image within a <p> tag. The accordion is set to hide and display the <p> tag when one of the <h3> tags is clicked.
Trying to turn the images into HTML has proved problematic as there are three different columns of text.
I've tried putting a table inside the <p> tag which didn't work. I've also tried to make the <table> disappear and reappear by amending the JavaScript in the header:
- <script type="text/javascript">
- $(document).ready(function(){
-
- $(".accordion2 h3").eq(0).addClass("active");
- $(".accordion2 table").eq(0).show();
-
- $(".accordion2 h3").click(function(){
- $(this).next("table").slideToggle("slow")
- .siblings("table:visible").slideUp("slow");
- $(this).toggleClass("active");
- $(this).siblings("h3").removeClass("active");
- });
-
- });
- </script>
That didn't work either.
Can anyone suggest a way I might be able to add different columns of text within the separate panels of this jQuery accordion?