我的HTML代码如下所示,
<div class="box-body" >
<span class="successMessage" th:text="${dataSuccess}" style="color: green; align-self:flex-end"></span>
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>Person Id</th>
<th>First Name</th>
<th>Last Name</th>
<th>Age</th>
<th>Sex</th>
<th>District</th>
<th>VDC/MUNICIPAL</th>
<th>Ward No.</th>
<th>Xray Status</th>
<th>Remarks</th>
<th>Actions</th>
</tr>
</thead>
<tbody th:each="persons : ${part}">
<form method="post" th:action="@{/xraystatus(id=${persons.id})}" enctype="multipart/form-data" id="form1">
<td th:text="${persons.id}" id="xrayid"></td>
<td th:text="${persons.name}"></td>
<td th:text="${persons.lastName}"></td >
<td th:text="${persons.age}"></td>
<td th:text="${persons.sex}"> </td>
<td th:text="${persons.district}"></td>
<td th:text="${persons.district}"></td>
<td th:text="${persons.wardNo}"></td>
<td>
<div class="checkbox" >
<select name="xraystatus" onchange="yesnoCheck(this);" style="width:61px" >
<option value="">Select</option>
<option value="1">Yes</option>
<option value="0">No</option>
<option value="2">Possible</option>
<option value="3">Exempted</option>
</select>
</div>
</td>
<td >
<input type="text" name="remarks" >
<!--</div>-->
</td>
<td><button type="submit" class="btn btn-success" >Submit</button> </td>
</form>
</tbody>
</table>
</div>
我的问题仅在复选框上。例如,如果从后端返回值1,则表示选择是,并忽略其他三个百万美元选项。所以只选择是,并在选择选项框中显示。但当&#34;是&#34;选择我想显示其他三个选项。我试图添加手动选项,但这个想法似乎有相同的选项重复。怎么能解决这个问题?