Hello there, I am new to the forum and need some help with an accordion menu. I am not very familiar with javascript and any help would be appreciated.
my question or problem is this: I need the link that opens the menu to also close the menu. here is what I have so far.
The JS
Code:
$('.gradient_block .show').click(function(event){
var wrap = $(this).parents('.gradient_block');
$('.desc', wrap).show();
event.preventDefault();
});
The link that opens the menu is
View pricing & channel listing.
here is the HTML
Code:
<div class="gradient_block with_border">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="column_left">
<img src="img/channels_180.png" alt="" width="147" height="63" />
</td>
<td class="column_right">
<div class="title_gradient_block">COMMERCIAL XTRA™ Pack</div>
<p>Pack offers access to over 180 channels of the best in news, sports, and entertainment as well as over 30 specially and regional sports networks and local channels - all for one low, all inclusive price. With this package you are sure to please even the toughest customer!</p>
<div><a href="" title="" class="show">View pricing & channel listing</a></div>
</td>
</tr>
</table>
<div class="desc">
<div style="padding:25px 0 0 32px">
<table cellpadding="0" cellspacing="0" width="674" style="text-align:left">
<tr><td width="50%" valign="top">
AUDIENCE Network™ HD<br>
A&E HD<br>
ABC Family HD<br>
American Movie Classics HD<br>
Animal Planet HD<br>
BBC America<br>
Once again any help is appreciated, and if more information is need to help solve the problem let me know and will post it.
Thank you.