0

So what i want to achive is when user click on i to open dropdown list and when user click again to close that dropdown list. Any suggestion?

<li>
    <select id="dropdown" class="dropdown">
           <option value="EN">EN</option>
           <option value="BS">BS</option>
           <option value="DE">DE</option>

    </select>
    <i id="arrow" class="fa fa-angle-down"></i>
</li>
None
  • 8,817
  • 26
  • 96
  • 171
  • Read up on css and replacing div's in the dom tree, or use something like x-tag or pollyfill. Then propose your solution here if it does not work – StarShine Nov 05 '15 at 10:06
  • 1
    Possible duplicate of [Is it possible to use JS to open an HTML select to show it's option list?](http://stackoverflow.com/questions/430237/is-it-possible-to-use-js-to-open-an-html-select-to-show-its-option-list) – vijayP Nov 05 '15 at 10:20
  • that was 6 years ago...really??? – None Nov 05 '15 at 10:22
  • but still the answer is NO... `:)`! Go for select2 plugin for that matter https://select2.github.io/ – vijayP Nov 05 '15 at 10:30

0 Answers0