I'd like to use a Twitter Bootstrap dropdown button:
<div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
</ul>
</div><!-- /btn-group -->
When the user changes the value of the button to 'Another action', instead of simply navigating to #
, I'd actually like to handle the action in a custom way.
But I can't see any event handlers in the dropdown plugin for doing this.
Is it actually possible to use Bootstrap dropdown buttons to handle user actions? I'm starting to wonder if they're only intended for navigation - it's confusing that the example gives a list of actions.