<div class="mui-numbox mui-pull-right" data-numbox-min="1" data-numbox-max="">
<button id="less" class="mui-btn mui-numbox-btn-minus" type="button">-</button>
<input id="numbers" class="mui-numbox-input" type="number" disabled />
<button id="add" class="mui-btn mui-numbox-btn-plus" type="button">+</button>
</div>
data-numbox-max 我动态给了他个值 为什么还是能继续增加
$(".mui-numbox").attr('data-numbox-max',nowsum)
0 个回复