Ecommerce Shopify WordPress Discussion

How to make a PHP Dropdown w/ typing and filtering [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 16 hours ago. Improve this question I'm trying to create a dropdown selector that can be typed to search by name, and can be optionally filtered by a category for data that looks like the following: name description category link tag British Heart Foundation desc.. Medical Research link... bhf Cancer Research UK desc.. Medical Research link... cruk So far I have gotten the following: echo "<select name='charity' style='position:absolute;' onmousedown='if(this.options.length>8) {this.size=8;}' onchange='this.size=0;' onblur='this.size=0;' >"; foreach($charity_list as $charity_list) { echo "<option value='" . $charity_list['tag'] ."|". $charity_list['name']."'".(($selected == $charity_list['name'])? 'selected' : '')." >" . $charity_list['name'] . "</option>"; } echo "</select>"; Which gets me a drop down which remembers the previously selected option, and only shows the top 8 results at once. However I would like to alter this code to be able to: Type to search through the dropdown list created Be able to filter the dropdown by category (E.g. All, Medical Research, Environmental etc) Ideally I would like to be able to do this just using PHP Any help appreciated!
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.