这是代码
听到手风琴的正确格式
使用此代码手风琴无法正常工作
<div>
<div id="accordion">
<div th:each="pattern : ${patterns}">
<h4><p th:text="${pattern.questionPattern}"/></h4>
/*if the pattern the </div> close hear the accordion not work properly */
<div>
<table>
<tr th:each="q : ${questions}">
<div th:if="${q.questionPattern.id ==pattern.id }">
<p>
<input type="checkbox" class="ads_Checkbox"
th:text="${q.questionName}" id="checkBoxId"
onclick="validate()"
th:onclick="'javascript:Select(\'' + ${q.id} + '\',this);'"
name="checkbox" /><img border="0"
th:attr="src=@{${q.imagePath}} ,
title=#{background}, alt=#{background}"
style="width: 50px; height: 50px;" /></p>
</div>
</tr>
</table>
</div>
</div>
</div>
</div>
输出的格式不正确。
如何获得正确的格式..?