I tried to make customize the search functionality with input and based on change value it will show different suggestion from database. but problem is after entering text i want to select suggestion with enter key press from keyboard. I tried lot but auto scroll is happening with mouse only.with keyboard it’s not working as we press arrow key up/down from keyboard. basically i want below attached tags and topics functionality.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It sounds like you are logging keyboard strokes as a way to update the auto-complete of your search box, so you may want to instead do it through a different element like the input box itself and use something like onChange which I think will react to the input in the search box, but not be affected by using the up and down arrow keys.
Alternatively you can also check out Algolia, as they provide a great managed search service, which does everything you are looking for.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.