title: Need to get table row's link attribute in JQuery and
body: <p>I have a table which I has links on each row. I am trying to use AJAX to retrieve an array of data from the database via PHP and return the data which will print in another DIV.</p>
  
  <p>I am trying to get the attribute value (link ID) that I assign to each row and pass this value to the query. I am not able to get the link ID, it does not display when I test issuing an alert. I read several post and tried a few things but no good. The alert popup displays "undefined".</p>
  
  <pre><code>&lt;tr id="mashed_row"&gt;
  &lt;td class="linked-title dark unpadded"&gt;
  &lt;a href="#" id="linksplode" link_id="&lt;?php echo $link['linkid']; ?&gt;"&gt;&lt;?php echo $link['keywords']; ?&gt;&lt;/a&gt;
  &lt;/td&gt;&lt;/tr&gt;
  
  &lt;script type="text/javascript"&gt;
      $(document).ready(function(){
          $('#mashed_row a').click(function () {
              alert($(this).closest('tr').find('td').attr('link_id'));
          });
      });
      &lt;/script&gt;
  </code></pre>