首页 > 其他 > 详细

Thymeleaf 回显checkbox、select

时间:2020-03-01 12:54:10      阅读:499      评论:0      收藏:0      [点我收藏+]
            <div class="form-group">
                <label class="col-sm-3 control-label">添加标签:</label>
                <div class="layui-input-block">
                    <tr th:each="d : ${bts}">
                        <input type="checkbox" th:value="${d.id}" name="tagbId" th:title="${d.name}" th:attr="checked=${d.checked }" />
                        #<label th:text="${d.name}"></label>
                    </tr>
                </div>

            </div>

  

            <div class="form-group">
                <label class="col-sm-3 control-label">添加话题:</label>
                <div class="col-sm-8 radio" >
                    <select name="topicId" th:value="${topid}"id="topic" class="form-control">
                        <option th:selected="${topid==dict.id}" th:each="dict : ${topics}" th:value="${dict.id}" th:text="${dict.content }">
                    </select>
                </div>
            </div>

  

 

Thymeleaf 回显checkbox、select

原文:https://www.cnblogs.com/qinyios/p/12389071.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!