Here's my list that I want to expand/collapse: My goal is simply to toggle expand/collapse, to have this list act like an accordion. What I don't understand is how to get the <div> from a hidden state to a visible state using the javascript provided below. Any resources or direct help is greatly appreciated.
Shipping
<li class="plusimageapply"><a name="faq-question">Why do I see prices for some items and not others? How do I get pricing on items that I want to buy?</a></li>
<div style="display: none;">Ths is a sampel of an answer tot he above question.</div>
<li class="plusimageapply"><a name="faq-question">How do I handle an overnight delivery?</a></li>
<div style="display: none;">AMOeasy offers five overnight shipping options. During checkout, simply check the option that best meets your needs and process your order.
<ul>
<li>UPS orders must be placed before 5:30pm EST / 2:30pm PST.</li>
<li>FedEx orders must be place before 8:00pm EST / 5:00pm PST.</li>
</ul>
If you are concerned that the item may not be in stock, please call customer service at 877-AMO-4LIFE (877-266-4543).
</div>
The following is the JavaScript I'm using
<script type="text/javascript">
$(document).ready(function(){
$('li a').click(function () {
var questionname= this.name;
$("#"+questionname).toggle();
$(this).parent().toggleClass("minusimageapply");
});
});
</script>