Possible to get list item (<li>) label with javascript?
- by matthew Rhodes
If I've got a ul with 3 items in it and the list-style-type is set to lower-alpha, I end up with this
a. Item 1
b. Item 2
c. Item 3
With jQuery, I can easily get the value of any item you click - "Item 1" if I click the first. But can I get the list item label? in this case 'a'?