SyntaxFix
Write A Post
Hire A Developer
Questions
<ul id="unOrderedList"> <li value="2">Whatever</li> . . $('#unOrderedList li').click(function(){ var value = $(this).attr('value'); alert(value); });
Your looking for the attribute "value" inside the "li" tag