set attr of inputs on this row
<p>I have a table with 3 rows </p>

<pre><code> &lt;table id="table1"&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;input type="text" disabled="disabled" value="200"/&gt;&lt;/td&gt;
 &lt;td&gt;&lt;input type="text" disabled="disabled" value="300"/&gt;&lt;/td&gt;
 &lt;td&gt;&lt;input type="checkbox"/&gt;&lt;/td&gt;
 &lt;tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;input type="text" disabled="disabled" value="400"/&gt;&lt;/td&gt;
 &lt;td&gt;&lt;input type="text" disabled="disabled" value="600"/&gt;&lt;/td&gt;
 &lt;td&gt;&lt;input type="checkbox"/&gt;&lt;/td&gt;
 &lt;tr&gt;
 &lt;/table&gt;
</code></pre>

<p>Jquery when someone clicks the checkbox i would like to change the attr of the 2 inputs on that row and make them editable but if someone clicks the checkbox on another row the previously enabled input must be disabled and the new one enabled</p>

<p>This is what i thought but it doesnt work</p>

<pre><code>   $("#table1 :checkbox").click(function(){
   $(this).parent(":input[type='text']").attr('disabled',false);

   });
</code></pre>
