title: Retrieving column values from a table by clicking row with jquery and html
body: <p>I'm using html5 and jquery to set up a dynamic table, until then I can add the elements to the table without problems, but I can not retrieve the value of its columns. so I have the following questions:</p>
  
  <ul>
  <li>How can I recover the table data by clicking the <strong>ROW</strong>?</li>
  <li>Should I always use the data-name, id for example as in the first
  line ?</li>
  </ul>
  
  <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>$(document).on("change", "#TabClientesAdicionados", function(e) {
    alert('?');
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;hr&gt;
  &lt;table id="TabClientesAdicionados" class="table table-hover"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt; ID &lt;/th&gt;
        &lt;th&gt; Name &lt;/th&gt;
        &lt;th&gt; Actions &lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td data-id="Bruno"&gt;1&lt;/td&gt;
        &lt;td data-nome="Bruno"&gt;Bruno&lt;/td&gt;
        &lt;td&gt;&lt;a href="#"&gt;Details&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;2&lt;/td&gt;
        &lt;td&gt;Josep&lt;/td&gt;
        &lt;td&gt;&lt;a href="#"&gt; Details  &lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>