var shortNameList = "<select><option value='1'>1</option><option value='2'>2</option></select>";
top.dialog({
      title: "修改账单的客户简称",
      width: 400,
      content: '<div class="layui-form-item" style="margin-top:15px;"><label class= "layui-form-label" style="width:15% !important;" > 客户简称:</label>' + shortNameList+'</div>',
      ok: function () {
      var newShortName = this._$("content").find("select").val(); //获取content中的select的选中值
      return false;  //返回false时,点击按钮不会关闭模态对话窗
      }
}).showModal();

  

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-11-17
  • 2021-11-21
  • 2021-08-22
相关资源
相似解决方案