title: get value from row in html and use it in jsp
body: <p>I have a jsp with a table like this:</p>
  
  <pre><code> &lt;table style="width:100%"&gt;
     &lt;thead&gt;
       &lt;tr&gt;
          &lt;th&gt;ID&lt;/th&gt;
          &lt;th&gt;Name&lt;/th&gt;
          &lt;th&gt;Adress&lt;/th&gt;
       &lt;tr&gt;
     &lt;/thead&gt;
     &lt;tbody&gt;
      //here is a loop filling the table
       &lt;tr data-toggle="modal" data-target="#modal"&gt;
         &lt;div&gt;
            &lt;td&gt;${id}&lt;/td&gt;
            &lt;td&gt;${name}&lt;/td&gt;
            &lt;td&gt;${adress}&lt;/td&gt;
         &lt;/div&gt;
       &lt;tr&gt;
    &lt;/tbody&gt;
   &lt;/table&gt;
  </code></pre>
  
  <p>So I want to use the id from the table in the modal (it's a popup dialog) for getting some information, but I can't get the value of the row that the user is pressing.
  Any help would be helpful.      </p>