如何容jquery实现,当该文本域中value取的session中的值为0时,将值变为1
<input type="text" id="serialNumber"
name="serialNumber" maxlength="250" style="width: 80%" value="${questionNaireQuestion.serialnumber}" readonly="readonly"
/>
如何容jquery实现,当该文本域中value取的session中的值为0时,将值变为1
<input type="text" id="serialNumber"
name="serialNumber" maxlength="250" style="width: 80%" value="${questionNaireQuestion.serialnumber}" readonly="readonly"
/>
EL表达式?
<c:choose>
<c:when test="${questionNaireQuestion.serialnumber == 0}">
<input type="text" id="serialNumber"
name="serialNumber" maxlength="250" style="width: 80%" value="1" readonly="readonly"
/>
</c:when>
<c:otherwise>
<input type="text" id="serialNumber"
name="serialNumber" maxlength="250" style="width: 80%" value="${questionNaireQuestion.serialnumber}" readonly="readonly"
/>
</c:otherwise>
</c:choose>