动态获取mui-number值

<volist name="asset_list" id="vo">

                        <li class="mui-table-view-cell bg-white apply-list-file apply-list-detailed" name="zczc" id="{$vo.zca_id}">
                            <div class="apply-list-file bg-white box-flex align-center justify-content-space-between" style="margin-bottom:15px">
                                <div class="label">
                                    {$vo.name}
                                </div>
                                <div class="box-flex flex-1 align-center justify-end">
                                    数量
                                    <div class="mui-numbox" id="data1" data-numbox-min='1' data-numbox-max='9'>
                                        <button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
                                        <input id="test" class="mui-input-numbox" type="number" value="1" />
                                        <button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
                                    </div>
                                    <div class="m-l-xl mui-text-right" onclick="delete_list('{$vo.zca_id}')">
                                        <img src="__ROOT__/Public/Zc/images/error.png" class="delete" />
                                    </div>
                                </div>

                            </div>
                        </li>
                    </volist>
                    
                    
                    

clipboard.png

阅读 2k
1 个回答
新手上路,请多包涵

$("#asset_ul input").each(function () {

        // var dd = mui('.mui-numbox').numbox().getValue();
        // sum = sum +',' + dd;
        console.log($(this).val());
    });
    sum = sum.substr(1);
    mui.alert(''+sum, '当前值: ', "确定");

}

//不用mui的方法 用query 更方便

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题