<div>
<div >
<h3 class="row-fluid header smaller blue lighter">
<i class="glyphicon glyphicon-list"></i> <span
class="span7" data-toggle="collapse" data-target="#fujianqu">附件区</span><!-- /span --></h3>
</div>
<div class="collapse" id="fujianqu">
<table class="table table-bordered table-condensed">
<tr for="files"><!-- 一定在此处加上for属性,不然无法找到input -->
<th>附件</th>
<td colspan="2"><input type="file" name="files" class="fileupload" data-no-uniform="true">
</tr>
</table>
</div>
</div>
<script type="text/javascript">
$(function(){
$('#fujianqu').collapse('show');
});
</script>
载入初始化,默认为显示div 点击事件隐藏与显示。