title: .NET MVC Bootstrap: shown.bs.dropdown Not Working
body: <p>I'm trying to tap into the 'shown.bs.dropdown' event on the ul with the id of 'navul'. Can't seem to get it working.  Here's my script:</p>
  
  <pre><code>&lt;script&gt;
      $('#navul').on('shown.bs.dropdown', function () {
          alert('hello');
      })
  &lt;/script&gt;
  </code></pre>
  
  <p>And here's my HTML:</p>
  
  <pre><code>&lt;div class="navbar navbar-inverse"&gt;
      &lt;div class="container"&gt;
          &lt;ul id="navul" class="nav navbar-nav"&gt;
              &lt;li role="presentation" class="dropdown"&gt;
                  &lt;a data-toggle="dropdown" href="#"&gt;&lt;img src="/Content/images/IconsNav/nav_appts.png" style="padding: 0px 5px 3px 0px;"&gt;Appointments&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
                  &lt;ul class="dropdown-menu" role="menu"&gt;
                      &lt;li&gt;@Html.ActionLink("YourAppointments", "YourAppointments", "Appointments")&lt;/li&gt;
                      &lt;li&gt;@Html.ActionLink("Schedule Appointment", "ScheduleAppointment", "Appointments")&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I never get the alert.  What am I doing wrong? I'm working off this:</p>
  
  <p><a href="http://getbootstrap.com/javascript/#dropdowns" rel="nofollow">http://getbootstrap.com/javascript/#dropdowns</a></p>
  
  <p>Thanks!</p>