title: How to change the bootstrap caret pointing direction on click event
body: <p>I'm using 2.3.2 bootstrap </p>
  
  <p>As I can change the position of the caret icon when I click the menu button. </p>
  
  <p>I need that when I click the icon caret pointing up and when you click on another item the caret back to the initial state. </p>
  
  <p>How is this possible?</p>
  
  <p>The nav code</p>
  
  <pre><code>&lt;div id="navi"&gt;
      &lt;div class="container"&gt;
        &lt;nav&gt;
          &lt;div class="navbar"&gt;
            &lt;div class="navbar-inner"&gt;
              &lt;div class="row"&gt;
                &lt;button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                &lt;/button&gt;
  
                &lt;div class="span2"&gt;
                  &lt;a class="brand" href="#"&gt;&lt;/a&gt;
                &lt;/div&gt;
  
                &lt;div class="span10"&gt;
                  &lt;div class="nav-collapse collapse"&gt;
                    &lt;div class="row"&gt;
                      &lt;div class="span8"&gt;
                        &lt;ul class="nav"&gt;
                          &lt;li class="dropdown"&gt;
                            &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Lorem 3 opes&lt;b class="caret"&gt;&lt;/b&gt;&lt;/i&gt;&lt;/a&gt;
                            &lt;ul class="dropdown-menu"&gt;
                              &lt;li&gt;&lt;a href="#"&gt;Lorem&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="institucional.html"&gt;Olosmpa&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="#"&gt;Lorem 2 isum&lt;/a&gt;&lt;/li&gt;
  
                            &lt;/ul&gt;
                          &lt;/li&gt;
  
                          &lt;li class="dropdown"&gt;
                            &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Lorem mas&lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
                            &lt;ul class="dropdown-menu"&gt;
                              &lt;li&gt;&lt;a href="#"&gt;Lorem&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="institucional.html"&gt;Olosmpa&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="#"&gt;Lorem 2 isum&lt;/a&gt;&lt;/li&gt;
  
                            &lt;/ul&gt;
                          &lt;/li&gt;
  
  
  
                        &lt;/ul&gt; 
                      &lt;/div&gt;&lt;!-- /span8 --&gt;
  
                      &lt;div class="span2"&gt;
                        &lt;div&gt;
                          &lt;form id="buscar-fixed" class="navbar-form form-search"&gt;
                            &lt;div class="input-append"&gt;
                              &lt;input class="inputBusqueda span2" type="text" placeholder="Buscar..." /&gt;
                              &lt;button class="btn" type="button"&gt;&lt;i class="icon-search icon-white"&gt;&lt;/i&gt;&lt;/button&gt;
  
  
                            &lt;/div&gt;
                          &lt;/form&gt;
  
                        &lt;/div&gt;
                      &lt;/div&gt;&lt;!-- /span2 --&gt;
                    &lt;/div&gt;&lt;!-- /row --&gt;
                  &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
                &lt;/div&gt;&lt;!-- /span10 --&gt;
              &lt;/div&gt;&lt;!-- /row --&gt;
            &lt;/div&gt;&lt;!-- /nav-inner --&gt;
          &lt;/div&gt;&lt;!-- /navbar --&gt;
        &lt;/nav&gt;
      &lt;/div&gt;&lt;!-- /container --&gt;
    &lt;/div&gt;&lt;!-- fin #nav-sup --&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/Gonzalo2683/pu8yrx14/3/" rel="noreferrer">Link to fiddle to try to resolve</a></p>
  
  <p><a href="http://imgur.com/d9UVm1p" rel="noreferrer">Image example of the problem</a></p>