I use JEASYUI for my forms. I have an edit form with a text box ( pqty), and I want to set its attribute maxto the value of another text box ( sqty), but I don't know if this is possible. I know that you can set it just using a specific number, but I need a variable. Something like data-options="max:*sqty value here*?
<div class="fitem">
<label>PO Qty:</label>
<input name="pqty" class="easyui-numberbox" data-options="required:true, max:***">
</div>
<div class="fitem">
<label>SO Qty:</label>
<input type="hidden" name="sqty">
<input name="sqty" disabled>
</div>
source
share