-
Notifications
You must be signed in to change notification settings - Fork 0
ttrefren/dropdizzle
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Dropdizzle is a jQuery plugin for creating smart, stylable dropdown menus.
Usage:
<div id="cities">Cities</div>
<script type="text/javascript">
// value == text of option
$("#cities").dropdizzle(['San Francisco', 'Seattle', 'New York', 'Atlanta']);
// value == option[0], display == option[1]
$("#cities").dropdizzle([[0, 'San Francisco'], ['s', 'Seattle'], 'New York', 'Atlanta']);
// Listen for change event
$("#cities").change(function() {
var val = $(this).attr('val');
console.log("Dropdown value: " + val)
});
</script>
About
jQuery plugin for dropdown boxes.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published