I have a search text field, and an array I want to output below.
This is my array:
array=["abc","abcde","ab","abcdef"];
When I enter "ab" in the text field, then the list should appear. "ab" should come first.
ab,
abc,
abcde,
abcdef,
If I type "abc" then list should show:
abc,
abcde,
abcdef,