SyntaxFix
Write A Post
Hire A Developer
Questions
To get value of li we should use $("#list li").click(function() { var selected = $(this).html();
or
var selected = $(this).text(); alert(selected);
})