title: Is there a way to get value in first column when record button is clicked in each record
body: <p>I need to get value from from first column when button in the last column of each record is clicked</p>
  
  <p>Each button has different Id(generated dynamically)  in the table and the purpose is to get value in the first   data cell of each record when the button in the last data cell of each row is clicked</p>
  
  <p>This is my code to do this please help</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>$("button").click(function() {
      var x = $(this.id).parent().find(`td:eq(0)`).html(); 
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>