diff options
Diffstat (limited to 'www/content/attributes/hx-trigger.md')
-rw-r--r-- | www/content/attributes/hx-trigger.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/content/attributes/hx-trigger.md b/www/content/attributes/hx-trigger.md index 5dcbcc77..a2410f40 100644 --- a/www/content/attributes/hx-trigger.md +++ b/www/content/attributes/hx-trigger.md @@ -86,12 +86,12 @@ but with a target filter for a child element * `all` - queue all events (issue a request for each event) * `none` - do not queue new events -Here is an example of a search box that searches on `keyup`, but only if the search value has changed +Here is an example of a search box that searches on `input`, but only if the search value has changed and the user hasn't typed anything new for 1 second: ```html <input name="q" - hx-get="/search" hx-trigger="keyup changed delay:1s" + hx-get="/search" hx-trigger="input changed delay:1s" hx-target="#search-results"/> ``` |