<div class="col-sm-10"> <select class="form-control" id="good_enabled" name="good_enabled"> <option value="1" selected >启用</option> <option value="0" >禁用</option> </select> </div>$('#update-goodtype').click(function () { var data = { 'enabled': $("#good_enabled option:selected").val() }
JS获取select属性值
最新推荐文章于 2022-08-09 20:47:10 发布