htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Docs: add an additional example for triggering only when input length >= 3

Open mristin opened this issue 3 years ago • 1 comments

Hi, It is a very common scenario to trigger a search only when the input length is above a certain limit (say, 3 characters), and otherwise show a message that the input is too short.

I think this would be a tremendous help for the newbies, in addition to the example where you trigger with a delay.

Please let me know if you want me to create a pull request.

mristin avatar Apr 09 '22 10:04 mristin

Yes please. A good example might be a keyup:

https://codepen.io/1cg/pen/dydpQGj?editors=1001

1cg avatar May 13 '22 01:05 1cg