title: Set selected item in dropdown-menu
body: <p>I need to set the selected item of my dropdown-menu in jquery but I can't make it work.</p>
  
  <p>My dropdown code looks as follows:</p>
  
  <pre><code>&lt;button type="button" id="aktiv" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"&gt;
    Aktiv &lt;span class="caret"&gt;&lt;/span&gt;
  &lt;/button&gt;
  &lt;ul class="dropdown-menu" role="menu"&gt;
   &lt;li&gt;&lt;a href="#"&gt;Aktiv&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt;&lt;a href="#"&gt;Inaktiv&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>