Automatisches Suchen ohne Submit-Button

This commit is contained in:
2023-10-08 11:01:57 +02:00
parent 324a1c54d6
commit 519dc82023
2 changed files with 3 additions and 5 deletions

View File

@ -19,10 +19,8 @@
{{ define "content" }}
<form>
<label for="search-input">Suche</label>
<input type="text" name="search" id="search-input" />
<button type="submit" hx-post="/search/" hx-target="#results" hx-swap="innerHTML">
Suchen
</button>
<input type="text" name="search" id="search-input" hx-post="/search/" hx-target="#results" hx-swap="innerHTML"
hx-trigger="keyup changed delay:200ms" />
</form>
<form>