1 year ago
#371342
FeliksB
How can i display only selected options in Thymeleaf
I am trying to modify the option in Thymeleaf so that the table can show me only selected item, after clicking the option. Here is my code:
<th>
<select th:onchange="???" id="stateSelect" class="form-control" th:field="*{receiverType}">
<option th:value='NULL'>All aggregators</option>
<option th:each="receiverType : ${receiverTypes}"
th:value="${receiverType}"
th:text="${receiverType}">
</option>
</select>
</th>
I know that i should use onchange
, but i am confused.
java
spring-boot
thymeleaf
spring-thymeleaf
0 Answers
Your Answer