I have a bootstrap dropdown menu and it has 'Action' as the default text. When I click on one of the dropdown items I would like it to be set to the text in the text field, but it doesn't. How do I get it so that it sets the visible text after I select an item.
<div class="btn-group">
<button type="button" class="btn btn-default">Action</button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Active</a>
</li>
<li><a href="#">Not Listed</a>
</li>
</ul>
</div>