Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Check DEMO <a href="http://jsfiddle.net/yeyene/NTFb2/2/" rel="nofollow">http://jsfiddle.net/yeyene/NTFb2/2/</a></p> <p>Not sure where is your respective div content.</p> <p>I assume your table and div like this. (may be only one div)</p> <h1>HTML</h1> <pre><code>&lt;div id="frame1"&gt; &lt;table border="1"&gt; &lt;tr&gt; &lt;td&gt;1 &lt;div class="content"&gt;Contents of row 1&lt;/div&gt; &lt;/td&gt; &lt;td&gt;1 &lt;div class="content"&gt;Contents of row 1&lt;/div&gt; &lt;/td&gt; &lt;td&gt;1 &lt;div class="content"&gt;Contents of row 1&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;2 &lt;div class="content"&gt;Contents of row 2&lt;/div&gt; &lt;/td&gt; &lt;td&gt;2 &lt;div class="content"&gt;Contents of row 2&lt;/div&gt; &lt;/td&gt; &lt;td&gt;2 &lt;div class="content"&gt;Contents of row 2&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;3 &lt;div class="content"&gt;Contents of row 3&lt;/div&gt; &lt;/td&gt; &lt;td&gt;3 &lt;div class="content"&gt;Contents of row 3&lt;/div&gt; &lt;/td&gt; &lt;td&gt;3 &lt;div class="content"&gt;Contents of row 3&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;div id="frame2"&gt; &lt;div id="showContent"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <h1>CSS</h1> <pre><code>#frame1{float:left;width:100%;height:150px;overflow:auto;} #frame2{float:left;width:100%;height:auto;overflow:auto;margin-top:10px;} table { float:left; width:100%; } table .content { visibility:hidden; width:1px; height:1px; } #showContent { float:left; width:100%; background:#ccc; } </code></pre> <h1>JQUERY</h1> <pre><code>$(document).ready(function(){ $('table tr').on('click',function(){ $('#showContent').html($(this).find('.content').html()); }); }); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload