Usage

HTML

Include the required files;

<link rel="stylesheet" type="text/css" href="./css/dropdown.min.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="./js/jquery.dropdown.min.js"></script>

Add some markup;

<select>
	<option>Option 1</option>
	<option>Option 2</option>
	<option>Option 3</option>
</select>
<ul>
	<li>Item 1</li>
	<li>Item 2</li>
	<li>Item 3</li>
</ul>

jQuery

Initialise with jQuery;

$(function() {

	$('select, ul').dropdown();

});

Dependencies

JavaScript

jQuery Dropdown requires jQuery v1.10.0+

Browser Support

All major modern browsers are supported.

Google Chrome Mozilla Firefox Safari Microsoft Edge Internet Explorer Opera

License

jQuery Dropdown was created by Dane and released under the MIT license.