title: Bootstrap jQuery dynamic table edit/delete/view button not working
body: <p>I'd appreciate any help on this. I have this DataTable with the last column being a button that spans various options such as Edit/Delete/View. Upon clicking that, it should delete the entire row. However, I'm not able to get the currently clicked element.
  Here's my code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.dropdown-menu a').click(function(e){
          console.log($(this).data('value'));
      });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;td&gt;
    &lt;span class="dropdown"&gt;
                                                  &lt;button id="btnSearchDrop_{{ index }}" type="button" data-toggle="dropdown" aria-haspopup="true"
                                                          aria-expanded="true"
                                                          class="btn btn-primary dropdown-toggle dropdown-menu-right"&gt;&lt;i
                                                          class="ft-settings"&gt;&lt;/i&gt;&lt;/button&gt;
                                                  &lt;span id='selected' aria-labelledby=btnSearchDrop_{{ index }}" class="dropdown-menu mt-1 dropdown-menu-right"&gt;
                                                    &lt;a href="#" data-value="edit_{{ row.DealKey }}" class="dropdown-item"&gt;&lt;i class="ft-edit-2"&gt;&lt;/i&gt; Edit&lt;/a&gt;
                                                    &lt;a href="#" data-value="delete_{{ row.DealKey }}" class="dropdown-item"&gt;&lt;i class="ft-trash-2"&gt;&lt;/i&gt; Delete&lt;/a&gt;
                                                    &lt;a href="#" data-value="view_{{ row.DealKey }}" class="dropdown-item"&gt;&lt;i class="ft-plus-circle primary"&gt;&lt;/i&gt; View&lt;/a&gt;
                                                  &lt;/span&gt;
    &lt;/span&gt;
  &lt;/td&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This should log the id of  tag but it doesn't. </p>