I have a list of links such as:
<li><a href="#">Alabama</a></li>
<li><a href="#">Alaska</a></li>
<li><a href="#">Arizona</a></li>
<li><a href="#">Arkansas</a></li>
<li><a href="#">California</a></li>
I have a div section(an article) that I want to update dynamically as a selection is made from the list.
<div>Select a state from the list</div>
Desired outcome: Selecting Alabama from the list displays in the main div a list of counties in Alabama.
Current outcome: Selecting Alabama from the list does not update the main div.
How can I best accomplish this? JavaScript? JQuery? JSFiddle?
I am looking for something maybe similar to this: Change the content of a div based on selection from dropdown menu
But I had no luck getting that to work with a list.