mr-wuxiansheng
//html页面
<select id="payWay" class="easyui-combobox" name="payWay" style="width: 100%;" data-options="required:true,editable:false"> </select>

 

 

 

//JS文件
function getPayedWay(){ $.ajax({ type :
"GET", url : top.baseUrl + "auction/settlement_bail/get/payed/type", data : null, dataType : \'json\', success : function(result) { var typeStr = \'\'; $.each(result, function(index, temp) { typeStr += \'<option value=\' + temp.id + \'>\' + temp.name + \'</option>\'; }); $(\'#payWay\').html(typeStr); $(\'#payWay\').combobox({}); var data = $(\'#payWay\').combobox(\'getData\'); $("#payWay").combobox(\'select\',data[0].value); }, error : function(result) { } }); }

 

 

分类:

技术点:

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2021-11-11
  • 2021-11-21
  • 2021-11-28
  • 2021-10-17
  • 2022-03-01
  • 2021-03-29
猜你喜欢
  • 2021-11-21
  • 2022-01-03
  • 2021-11-11
  • 2021-11-21
  • 2021-10-14
相关资源
相似解决方案