I am trying to implement a searchable list of buttons on my website, but I haven't been able to find a solution that fits exactly what I have in mind. Currently, I have a list of buttons coded as inputs and I want to add a search field that will filter the buttons as the user types.
For example, if I have 30 buttons representing popular websites and a user starts typing "G", only buttons with names starting with "G" should be displayed, and so on for subsequent letters entered by the user.
I have considered manually coding a solution using IDs and CSS to show/hide elements, but I feel this approach may not be very efficient or maintainable in the long run.
While AJAX seems like a good option for dynamic filtering, I am open to exploring other JavaScript solutions that might work better in this scenario.