简体   繁体   中英

Semantic UI - Search Selection not working

I'm trying to use the Semantic UI - Search Selection, but it's not working.

I got the code from their website ( here ) but it does nothing...

Code:

<div class="ui fluid search selection dropdown">
  <input type="hidden" name="country">
  <i class="dropdown icon"></i>
  <div class="default text">Select Country</div>
  <div class="menu">
    <div class="item" data-value="ad"><i class="ad flag"></i>Andorra</div>
    <div class="item" data-value="ae"><i class="ae flag"></i>United Arab Emirates</div>
  </div>
</div>

Even if I initialize it on jQuery it doesn't work:

jQuery('.ui.dropdown')
  .dropdown()
;

What am I doing wrong? Is there something else I need to do to make it to work on WordPress?

得到它使用class="simple"

<div class="ui fluid search selection simple dropdown">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM