Thanks John, that works great... Here's another question that is somewhat related:
I have this line as the first line of the function which gives me access to all the attributes of the li element: l = $(this); However, I'd like to also get access to the attributes of a span within that li. What line of code would give me a variable with that span's attributes? Here's pseudo code: s = $(child of this);