select onchange=”getChilds(this.value)” class=”form-control select2″ id=”catId” name=”catId”>
<option value=””> — 请选择 — </option>
<option th:selected=”${goods.catId eq c.id}” th:each=”c:${categoryList}” th:value=”${c.id}” th:text=”${c.name}” value=”1″>蔬菜</option>
</select>
说明1:红色代码部分为下拉框数据回显。
说明2:黄色代码部门为下拉框选中
———————
作者:Lei_Da_Gou
来源:CSDN
原文:https://blog.csdn.net/Lei_Da_Gou/article/details/80741573
版权声明:本文为博主原创文章,转载请附上博文链接!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。