In a HTML unordered list, get the list item that was clicked (UL > LI)

Code copied from http://stackoverflow.com/questions/3545341/jquery-get-the-id-value-of-li-after-click-function