我有一张表格显示课程详细信息,使用 Thymeleaf 调用数据,我有“应用”按钮来应用课程。单击“应用”按钮时,我想将 course.html 行中的值带到 applycourse.html 。
课程.html
<table id="coursetable" class="coursetable">
<thead>
<tr>
<th>Status</th>
<th>Course Code</th>
<th>Course No</th>
<th>Course Name</th>
<th>Course Date (Time)</th>
<th>Apply</th>
</tr>
</thead>
<tbody>
<tr th:each="class : ${inclass}" th:data-row="${class}">
<td th:text="${class.classStatus}"></td>
<td th:text="${class.courseId.courseCode}"
th:style="${class.courseId.courseCode}"></td>
<td th:text="${class.classNo}"></td>
<td th:text="${class.courseId.courseTitleEng}"></td>
<td th:text="${class.classDate}"></td>
<td><a href="../CourseRegistration-NotesForOnlineApplication/individual/individualapplication" class="spinner-trigger-button">Apply</a></td>
</tr>
</tbody>
</table>