How to open select dropdown by button?
$(\'button\').on(\'click\', function() { $(\'select\').trigger(\'click\'); });
My code: http://js
hope this help
aaaaa bbbbb ccccc button $("button").click(function () { var size = $('#s option').size(); if (size != $("#s").prop('size')) { $("#s").prop('size', size); } else { $("#s").prop('size', 1); } })