title: How to get custom html tag attribute value using jQuery
body: <p>How would I store the value  of a custom html element in a variable when the specific element has been clicked.</p>
  
  <p>I've got numerous elements of the same class where the custom html attribute changes for each element and I want to know which one has been clicked.</p>
  
  <pre><code>&lt;div class="comment-post-btn comment-post-btn-wrapper" data-comment-id="' . $row['Id'] . '" &gt;
      Post
  &lt;/div&gt;
  &lt;div class="comment-post-btn comment-post-btn-wrapper" data-comment-id="' . $row['Id'] . '" &gt;
      Post
  &lt;/div&gt;
  &lt;div class="comment-post-btn comment-post-btn-wrapper" data-comment-id="' . $row['Id'] . '" &gt;
      Post
  &lt;/div&gt;
  </code></pre>