62,046
社区成员
发帖
与我相关
我的任务
分享
$("fieldset.collapsible").collapse({ closed: true });
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script>
$(function () {
$("fieldset legend").css('cursor', 'pointer').click(function () {
$(this).nextAll().slideToggle();
});
});
</script>
</head>
<body>
<fieldset>
<legend>显示附件</legend>
<div style="height:300px">
...
</div>
</fieldset>
</body>
</html>
<div>
<fieldset id="Track" class="collapsible">
<legend><a> </a>显示附件</legend>
<div>
<table id="upLoadData">
</table>
</div>
</fieldset>
</div>