leigei-it

下拉框固定值数据回显

<div class="form-group">
    <div class="select_div">
        <input class="form-control" type="hidden" id="brands" th:value="${fikabivoidfinancereport.brand}">
        <select class="selectpicker"  id="brand" name="brand">
            <option selected="selected" value="">请选择品牌</option>
            <option >KuKo</option>
            <option >CoCo</option>
        </select>
    </div>
</div>

//品牌值回显
$(function() {
    var brands = $(\'#brands\').val();
    if(brands != \'\'){
        $(\'#brand\').val(brands);
    }
});

 

分类:

技术点:

相关文章:

  • 2022-03-04
  • 2021-11-18
  • 2021-11-18
  • 2021-06-04
  • 2021-03-30
猜你喜欢
  • 2021-11-18
  • 2021-11-18
  • 2021-11-23
  • 2021-11-18
  • 2021-11-18
  • 2021-07-15
相关资源
相似解决方案