I have this jsp input text code:
<td>
<input type="text" name="qty" id="qty" size="10" value=<%=quantitySet%>
class='<%=stkAdjFrm.itemObj.isDecimalItemType()?<???>:<???>%>'
onblur="chkZero(this.value,'qty','qtyError','Quantity must not be zero');" />
<label id="qtyError" for="qtyError" class="errMsg"></label>
</td>
The class checks whether the value is a decimal or non-decimal. Any idea what to place in condition?
If its decimal it needs to show 6 decimal places, otherwise show no decimal places at all.