I have used the guidance at https://www.w3schools.com/howto/howto_js_filter_lists.asp to create a filter/search list.
When text is typed into the search box, only the filtered items are shown on screen, as expected.
But if, for example, the list contains both ‘Charlie’ and ‘Charles’, and if the user filters for ‘Charlie’, hyperlinking ‘Charlie’ to ‘Charles’ does not work, e.g.
Charlie, see <a href=”#Charles”>Charles.</a>
...
<a name=”Charles”>Charles</a> ...
P erhaps this is because the href tag at this point is only searching the filtered results.
Hyperlinks from one item to another like this do work BEFORE the list is filtered, but not AFTER the list has been filtered. Any ideas how to resolve this, please?