Automatisches Suchen ohne Submit-Button
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user