title: One single bootstrap dropdown-menu for multiple elements
body: <p>I have multiple buttons. I want them to all display the same/single dropdown-menu element rather than having a separate dropdown-menu for each.</p>
  
  <p>I was hoping I could utilize the data-target attribute to do so. </p>
  
  <p>Further more, I'd like to be able to display this single dropdown-menu on any element. In my case, a th element in a table. I'm trying to get this to first work with buttons (and then maybe move on to trying th elements) so I copied this straight from the boot strap documentation and modified slightly, however it does not work. Is what I want possible with bootstrap dropdowns? </p>
  
  <pre><code>&lt;link   href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"&gt;&lt;/script&gt; 
  &lt;script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;div class='row mb-1'&gt;
      &lt;div class='col-4'&gt;&lt;/div&gt;
      &lt;div class='col-4'&gt;
          &lt;button class="btn btn-secondary dropdown-toggle" data-target='.test-menu' type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;
              Dropdown button
          &lt;/button&gt;
      &lt;/div&gt;
      &lt;div class='col-4'&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class='row mb-1'&gt;
      &lt;div class='col-4'&gt;&lt;/div&gt;
      &lt;div class='col-4'&gt;
          &lt;button class="btn btn-secondary dropdown-toggle" data-target='.test-menu' type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;
              Dropdown button
          &lt;/button&gt;
      &lt;/div&gt;
      &lt;div class='col-4'&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class='row mb-1'&gt;
      &lt;div class='col-4'&gt;&lt;/div&gt;
      &lt;div class='col-4'&gt;
          &lt;button class="btn btn-secondary dropdown-toggle" data-target='.test-menu' type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;
              Dropdown button
          &lt;/button&gt;
      &lt;/div&gt;
      &lt;div class='col-4'&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;div class="dropdown-menu test-menu" aria-labelledby="dropdownMenuButton"&gt;
      &lt;a class="dropdown-item" href="#"&gt;Action&lt;/a&gt;
      &lt;a class="dropdown-item" href="#"&gt;Another action&lt;/a&gt;
      &lt;a class="dropdown-item" href="#"&gt;Something else here&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I click any of the three buttons, nothing happens.</p>