[Solved] The event handler to select
DEMO HTML: <select id=”cd-dropdown” class=”cd-select”> <option value=”-1″ selected>Choose an animal</option> <option value=”1″ class=”icon-monkey”>Monkey</option> <option value=”2″ class=”icon-bear”>Bear</option> <option value=”3″ class=”icon-squirrel”>Squirrel</option> <option value=”4″ class=”icon-elephant”>Elephant</option> </select> <div id=”div1″ class=”animalDiv”>MONKEY</div> <div id=”div2″ class=”animalDiv”>BEAR</div> <div id=”div3″ class=”animalDiv”>SQUIRREL</div> <div id=”div4″ class=”animalDiv”>ELEPHANT</div> CSS: .animalDiv { display:none; } JS/jQuery: $(function() { $(‘#cd-dropdown’).dropdown({ gutter: 5, stack: false, delay: 100, slidingIn: 100, onOptionSelect: function(e) { … Read more