How to detect which Li was clicked
I have several menu items and I would like to get the Val() into a var so that I can popup the correct overlay/popup. What is a way to do that?
- <div id="navcontainer">
- <ul id="navlist">
- <li><a id="showPopup1" href="#">Page 1</a></li>
- <li><a id="showPopup2" href="#">Page 2</a></li>
- <li><a id="showPopup3" href="#">Page 3</a></li>
- <li><a id="showPopup4" href="#">Page 4</a></li>
- </ul>
- </div><!--end navcontainer-->
Thanks...
Todd