skip to Main Content

JQuery autocomplete from DB in spring boot and Thymeleaf

this is my template: <!-- JavaScript --> <link rel="stylesheet" href="https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/jquery-3.7.1.js"></script> <script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script> <script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.11.8/umd/popper.min.js"></script> <script type="text/javascript" > $( function() { $( "#hint" ).autocomplete({ source: "https://api.nunyito.com/api/geoDetailsForWeb", minLength: 3, select: function( event, ui ) { alert('hi');…

VIEW QUESTION

Html – @PutMapping doesn't work in my SpringBoot project

I've tried to implement TodoList editing into my GetTodoController and it doesn't work. <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Create Todo</title> <link rel="stylesheet" th:href="@{/styles/todo/operation.css}"> </head> <body> <h2>Edit your Todo!</h2> <form th:method="PUT" th:action="@{/todo/edit/{id}(id=${list.id})}" th:object="${list}"> <label for="name">Name: </label> <input type="text"…

VIEW QUESTION
Back To Top
Search