html - How to make <option>s of <select> show or hide using JavaScript? -


I & lt; Select or hide by program (JS), is it possible?

This stack is just like interesting tags in the first page of the overflow, when you type a few words, the drop list will expand and give you suggestions.

ps.I know that stackoverflow did not use the selection in this matter, anyways take it as an example.

From the option to select from the collection Add or remove items.

Here is an example that removes one item and adds another:

   

Comments