Minimum number of characters before hx-get?

Viewed 158

I'm wondering if it's possible to set a minimum number of characters before the request is dispatched in an input?

1 Answers

You can filter events in html using a filter expression, and use that to examine the number of characters in the input:

  <input ... hx-trigger="keyup[target.value.length > 10]" ...>
Related