title: How can i add icon to bootstrap dropdown
body: <p>I have this code</p>
  
  <pre><code>        &lt;div class="btn-group" dropdown&gt;
              &lt;button type="button" class="btn btn-danger"&gt;Action&lt;/button&gt;
              &lt;button type="button" class="btn btn-danger dropdown-toggle" dropdown-toggle&gt;
                  &lt;span class="caret"&gt;&lt;/span&gt;
                  &lt;span class="sr-only"&gt;Split button!&lt;/span&gt;
              &lt;/button&gt;
              &lt;ul class="dropdown-menu" role="menu"&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="divider"&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Separated link&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>which looks like</p>
  
  <p><img src="https://i.stack.imgur.com/xUrjI.png" alt="enter image description here"></p>
  
  <p>I want to add icon like cog insteaqd of Text like this</p>
  
  <p><img src="https://i.stack.imgur.com/uM4gY.png" alt="enter image description here"></p>
  
  <p>I have tried this</p>
  
  <p><code>&lt;button type="button" class="glyphicon glyphicon-cog"&gt;&lt;/button&gt;</code></p>
  
  <p>buts not working</p>