<script th:src="@{/webjars/jquery/3.4.1/jquery.min.js}"></script> <script th:src="@{/js/sample.js}"></script> <th:block th:each="comment : ${todo.comments}"> <div class="card my-3 w-50" th:data-id="${comment.id}"> <div class="card-body"> <p th:text="${comment.comment}"></p> <div class="d-grid gap-2 d-md-flex justify-content-md-end"> <p class="my-auto" th:text="${#dates.format(comment.updatedDate,'