Okay, so this code is an unordered list with a search input box and a submit button to search and focus/highlight an item in the unordered list. Check out the list to see the different ways ive formatted the list items. I donr understand why but I can only search for list items that are anchors, and Id like my list items to be spans. Why dosnt it search for ids that are a span tag? It works fine when you search for ids that are an anchor tag. How can I get it to search for and focus/highlight spans and not just anchor tags?
http://codepen.io/d9esco/pen/PZrvNo