0
我對使用單選按鈕的禁用屬性存在問題。所以在基於when語句的代碼中,我需要預先選擇一個單選按鈕並禁用它,因此用戶不能更改它。代碼在前端工作正常,但是當我將表單提交給DB時,該按鈕的值變爲空。禁用單選按鈕無法正常工作
<c:when test="${DATA_WAREHOUSE != null && DATA_WAREHOUSE == 'CNS'
&& DATA_WAREHOUSE_RESPONSE != null && DATA_WAREHOUSE_RESPONSE == 'CNS_0'}">
<label for="rMailer" class="radio-wrap">
<input type="radio" name="maileraddressee" value="MAI" id="rMailer" checked disabled>
I was the mailer
</label>
<label for="rAddressee" class="radio-wrap">
<input type="radio" name="maileraddressee" value="ADD" id="rAddressee" disabled>
I was the addressee
</label>
<input name="mailerAddressee" value="MAI" type="hidden"/>
</c:when>