I have a grid with several columns and the column "Vehicle" of the columns has the options presented in a dropdown menu (html select element). I also have an input type text where the user can type a string.
I want to filter all the Dropdowns options in the Vehicle column according to the string the inserted by the user in the input field.
For example:
Dropdown has 4 options:
- List item
- Bike 1
- Bike 2
- Car 1
- Car 2
If the user types "car" in the input the input, the Dropdown should show only the options with Car (Car 1, Car 2).
I do not want to affect rows. Just the dropdown options, of all the dropdowns, in the Vechicle column.
I am unable to provide the code due to restrictions.
How may I achieve this using vanilla JavaScript?
Thanks in advance.