title: Passing id value to external function with popover
body: <p>I'm stuck trying to pass an id value to another function.</p>
  
  <p>JQuery:</p>
  
  <pre><code>$('a.btnPopClass').popover({
              placement: 'right',
              html: true,
      content: 'Are you sure?&lt;br&gt;&lt;br&gt;&lt;a class="btn btn-danger btn-block" id="click-me"&gt;Yes&lt;/a&gt;'
  }).parent().on('click', '#click-me', function() {
      delete_row(id);
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;a type="button" data-id="&lt;?php echo $row['id']; ?&gt;" class="btnPopClass btn btn-danger btn-block"&gt;Remove&lt;/a&gt;
  </code></pre>
  
  <p>The button gets an data-id value and i want to pass this value to the delete_row() function. I've been experimenting with 
    $(this).data('id') but i can't visualize how to work my way past the problem.</p>