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
you can try this:
u can use class or id for selector to select easier the element.
for use the value also u can use the value
in u javascript with jQuery.
$().ready(function(){
$('a').click(function(){
var value = $(this).text();
alert(value);
});
});
Demo: http://jsfiddle.net/mr_mohsen_rasouli/A8m39/