I need to get the value a user selects from a twitter bootstrap dropdown. Once the user selects a value I want the dropdown to display that value. So, the user selects \'pending
I had the same issue. The solution is pretty easy and I think the answers above may be overcomplicating a bit.
Just use $(this).text()
Assign a class name to the "" bit then..
$(".yourUlClassName li a").click( function() { var yourText = $(this).text(); });