I am building a dropdown list of anchor tags (not a select):
<ul>
<li class="selected"><a href="#">List item 1</a></li>
<li><a href="#">List item 2</a></li>
<li><a href="#">List item 3</a></li>
<li><a href="#">List item 4</a></li>
</ul>
When a user selected the list, it triggers a focus state which shows all items. I also want it to blur when the user clicks off of the ul or selects an item.
Is this possible?
Note:
.blur()
and.focus()
only work with form elements.