title: How can I get the value of a data attribute from my tr element?
body: <p>I have the following:</p>
  
  <pre><code>&lt;tr data-rk="050500" data-pk="0006000" id="row_2"&gt;
  </code></pre>
  
  <p>I am trying to get the value of the data elements like this but it does not work. How can I do it ?  Also how can I get the id for the row and put that into a variable?</p>
  
  <pre><code>var data-rk = $(this).('data-rk');
  </code></pre>
  
  <p>Note that the $(this). part already worked when I used it to set CSS. I need to use $(this). as I want to do this for a row when it's clicked on.</p>