title: .click event (jQuery) for <li> element in dropdown menu (Bootstrap)
body: <p>I'm using Bootstrap and I've the following drop down menu:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;span class="dropdown"&gt;
     &lt;button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"&gt;Toggle&lt;/button&gt;
     &lt;ul class="dropdown-menu" role="menu"&gt;
        &lt;li id="one"&gt;One&lt;/li&gt;
        &lt;li id="two"&gt;Two&lt;/li&gt;
     &lt;/ul&gt;
  &lt;/span&gt;
  </code></pre>
  
  
  
  <p>I would like to use the <code>.click</code> event of jQuery to check if the first item is being clicked:</p>
  
  <pre class="lang-js prettyprint-override"><code>$(function () {
     $("#one").click(function() {
        alert("Alert!");
     });
  });
  </code></pre>
  
  
  
  <p>Unfortunately that's not working.
  <strong>When the list item is NOT in the dropdown menu it works perfectly.</strong></p>
  
  <p>Thanks for any support in advance!</p>