Skip to content

Instantly share code, notes, and snippets.



Created Mar 19, 2013
What would you like to do?
jQuery Plugin Workshop Dropdown menu
<h2>Dropdown Menu</h2>
<div class="dropdown">
<a data-toggle="dropdown" href="#">Dropdown</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<li><a tabindex="-1" href="#">Action</a></li>
<li><a tabindex="-1" href="#">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
// Clear the console
(function ($) {
$.fn.dropdown = function () {
return this.each(function () {
var $self = $(this);
$ () {
return false;
@import "compass";
body { padding: 10px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.