title: Passing data from table to Modal Table
body: <p>I have two tables for my inventory first is the Item List then the Item Info</p>
  
  <p>I bind the Item List to a HTML Table the add a button for each row the purpose of the button is to show the Item Info or table via modal</p>
  
  <p>I have already done the table and modal design but i cant get or pass the Item ID for my Item List to my modal</p>
  
  <p>can  anyone help me i'm kind a new in HTML (noob hir :3)</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;thead&gt;
    &lt;tr&gt;
      &lt;th class="text-center"&gt;Item ID&lt;/th&gt;
      &lt;th class="text-center"&gt;Particular&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  
  &lt;tbody class="searchable"&gt;
    &lt;% List&lt;Inventory.MODEL.adminView&gt;x = new List
      &lt;Inventory.MODEL.adminView&gt;(); Inventory.BAL.ItemBAL z = new Inventory.BAL.ItemBAL(); x = z.getAdminView().ToList(); foreach (var item in x) {%&gt;
        &lt;tr&gt;
          &lt;td&gt;
            &lt;%=i tem.ID %&gt;
          &lt;/td&gt;
          &lt;td&gt;
            &lt;%=i tem.Particulars %&gt;
          &lt;/td&gt;
          &lt;%}%&gt;
            &lt;td class="text-center"&gt;
              &lt;a href="#Modal" data-toggle="modal" class="btn btn-info-sm" onclick="myFunction()"&gt;&lt;span class='glyphicon glyphicon-info-sign'&gt;&lt;/span&gt;&lt;/a&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;%} %&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="Modal" class="modal fade"&gt;
  
    &lt;div class="modal-dialog modal-lg"&gt;
  
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
          &lt;h4 class="modal-title"&gt;Item Inventory&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          &lt;table class="table table-hover table-bordered"&gt;
            &lt;thead&gt;
              &lt;tr&gt;
                &lt;th class="text-center"&gt;Item ID&lt;/th&gt;
                &lt;th class="text-center"&gt;Total Quantity&lt;/th&gt;
              &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tbody&gt;
              &lt;% iteminvents(); %&gt;
            &lt;/tbody&gt;
          &lt;/table&gt;
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>that's my code, anyone can advice or can help me ?</p>