Answers for "thymleaf input radio loop"

1

thymeleaf input radio checked

<input type="checkbox" name="active" th:checked="${user.active}" />
Posted by: Guest on May-12-2020
0

thymeleaf radio button

<ul>
  <li th:each="ty : ${allTypes}">
    <input type="radio" th:field="*{type}" th:value="${ty}" />
    <label th:for="${#ids.prev('type')}" th:text="#{${'seedstarter.type.' + ty}}">Wireframe</label>
  </li>
</ul>
Posted by: Guest on June-16-2020

Browse Popular Code Answers by Language