getting values of the clicked row and assigning cell's values to corresponding inputs
<p>I have a table with id="selector". </p>

<p>Each row's cell has a corresponding input to it.</p>

<pre><code>&lt;td class="cell1"&gt;&lt;b&gt;Cell 1&lt;/b&gt;&lt;/td&gt;

&lt;input type="text" name="cell1" id="cell1"&gt;
</code></pre>

<p>What I need to do is to capture the whole row and assign certain cells to the inputs (not all cells will be assigned to inputs). In this example it would just be cell1. </p>

<pre><code>&lt;script type="text/javascript "&gt;
   $('#selector tr').click(function() {  
    var values = ($(this).html()); // this is the whole row

    // no idea what to do now
   $("#cell1").val($(this)) // don't know how to select cell1

            });
&lt;/script&gt;
</code></pre>

<p>EDIT: #sub1 -> #cell1</p>
