jquery value of element
why is this not returning value in li? what am i doing wrong?


    $("#list li").click(function() {
            var selected = $(this).val();
            alert(selected);
    })

jquery value of element
===

why is this not returning value in li? what am i doing wrong?


    $("#list li").click(function() {
            var selected = $(this).val();
            alert(selected);
    })
