How to get element value in jQuery
<p>Why is it not returning value in 'li'? What am i doing wrong?</p>

<pre><code>$("#list li").click(function() {
    var selected = $(this).val();
    alert(selected);
})
</code></pre>
