我想在此切换框的底部添加一个关闭按钮。有人可以帮我写剧本吗?谢谢。
<td>
<a href="javascript:void(0)" class="heading">Business Management in the Global Economy <small>(2+2 Program)</small></a>
<div class="info-hidden info" style="height:380px;">
<p>
<b>Program Description:</b><br />
Some Text.......
<br />
<a href="/programs/bachelors-in-business-management-in-the-global-economy.php" class="nudge">
<b>Learn More ►</b>
<a class="close" href="javascript:void(0)">Close ☒</a>
</a>
</p>
</div>
</td>
脚本看起来像这样 - 非常简单。
// slide toggle
$(".info").hide();
//toggle the componenet with class msg_body
$(".heading").click(function()
{
$(this).next(".info").slideToggle(300);
});