title: Get value of option of the dropdown menu and filter table
body: <p>I would like to click in the dropdown menu and I get the value of the selected option. After that I would like to filter a field of the bootstrap-table and it show only the records with this field.</p>
  
  <p><a href="https://i.stack.imgur.com/l2LBt.png" rel="nofollow"><img src="https://i.stack.imgur.com/l2LBt.png" alt="enter image description here"></a></p>
  
  <p>At moment my code of the jquery is this:</p>
  
  <pre><code>$('#edicion').click(function(v){
                  console.log(v.target.value);
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="dropdown pull-left  btn-group" style="padding-right: 10px;"&gt;
      &lt;button class="btn dropdown-toggle" type="button" data-toggle="dropdown"&gt;EDICIÓ&lt;span class="caret"&gt;&lt;/span&gt;&lt;/button&gt;
      &lt;ul class="dropdown-menu text-center" id="edicion"&gt;
          &lt;?php 
              $result = dbQuery($conn, "SELECT * FROM produccion.ma_edicion");
                  while ($row = pg_fetch_row($result)){ ?&gt;
                      &lt;li&gt;&lt;a href=#&gt;&lt;?php echo $row[1] .' '. $row[2]; ?&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;?php 
                  }
                  ?&gt;
        &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><code>#edicion</code> is the id of the Dropdown Menu and at moment only it shows in the console the message 'undefined'.</p>
  
  <p><a href="https://i.stack.imgur.com/HCB0U.png" rel="nofollow"><img src="https://i.stack.imgur.com/HCB0U.png" alt="enter image description here"></a></p>
  
  <p>I do not know how to get the value of the option nor how to filter the table applying this value at field.</p>
  
  <p>To filtering:</p>
  
  <p><a href="https://i.stack.imgur.com/SK1xn.png" rel="nofollow"><img src="https://i.stack.imgur.com/SK1xn.png" alt="enter image description here"></a></p>
  
  <p>After choose option:</p>
  
  <p><a href="https://i.stack.imgur.com/2gAjz.png" rel="nofollow"><img src="https://i.stack.imgur.com/2gAjz.png" alt="enter image description here"></a></p>
  
  <p>The head of the table disappear :(</p>