jQuery: assign list of buttons to toggle a list of elements
Posted on 2011-05-03
I need a simple script that will create event handlers on all <li>'s in two navigation menus. The two menus are the same, one at the top of a page, one at the bottom. They will toggle the visibility of content <div>'s.
I want a click on the first <li> to be actionable (show target, hide others) on the first <div>. The second <li> on the second <div>, etc for any number of <div>'s and <li>'s.