javascript - Best way to handle changes of <select> -
on main page (index.html) have list of objects have category field example. , on top of page have element selecting category. so, best way handle this: when changes selected category in - change list of objects (view objects selected category). can make using java+spring+thymeleaf or have use javascrypt or other tool also?
update: code
<div class="grid-30"> <select id="selectcategory" th:field="${selected.id}"> <option th:each="category : ${allcategories}" th:value="${category.id}" th:text="${category.name}">all categories</option> </select> </div>
so when element changes want toggles move url "/category/"+${selected.id}
Comments
Post a Comment