Class: dropdownizer

dropdownizer

Sample use:

<select class="dropdownizer">
     <option value="north">Go North</option>
     <option value="south" selected>Go South</option>
</select>

<script>
     $.dropdownizer();

     console.log($(".dropdownizer [data-selected]").html()); //Go North
     console.log($(".dropdownizer button").html()); //Go North
     console.log($(".dropdownizer").val()); //north
     $(".dropdownizer").change(function (e) { console.log(e.selected.value); }); //north
</script>

Constructor

Convert all <select> tags with the 'dropdownizer' class to customizable dropdowns.