当我点击numbox的加减按钮的时候,checkbox会随之在选中与未选中之间来回切换,代码结构如下
<li class="mui-table-view-cell mui-media mui-checkbox mui-left">
<input name="" type="checkbox" checked >
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="img/pic-blue.jpg">
<div class="mui-media-body">
幸福
<p class="mui-ellipsis">能和心爱的人一起睡觉,是件幸福的事情;可是,打呼噜怎么办?</p>
</div>
<div class="mui-numbox" data-numbox-step='1' data-numbox-min='0' data-numbox-max='10'>
<button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
<input class="mui-numbox-input" type="number" />
<button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
</div>
</a>
</li>