'this' not referring to correct method
<p>My problem is that the 'this' selector doesn't refer to the correct element. I searched on jquery and it says that you have to type: "$(this)" to refer to the first function, but this doesn't work.</p>

<p>Html:</p>

<pre><code>&lt;tbody id="tableBody"&gt;
            &lt;tr&gt;
                &lt;td&gt;Product 1&lt;/td&gt;
                &lt;td class="basisprijs"&gt;10.00&lt;/td&gt;
                &lt;td class="aantal"&gt;&lt;input type="text" name="txtAtl1" value="0" id="txt1"/&gt;&lt;/td&gt;
                &lt;td class="btw"&gt;6&lt;/td&gt;
                &lt;td&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;Product 2&lt;/td&gt;
                &lt;td class="basisprijs"&gt;15.00&lt;/td&gt;
                &lt;td class="aantal"&gt;&lt;input type="text" name="txtAtl2" value="0" id="txt2"/&gt;&lt;/td&gt;
                &lt;td class="btw"&gt;21&lt;/td&gt;
                &lt;td&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;Product 3&lt;/td&gt;
                &lt;td class="basisprijs"&gt;12.20&lt;/td&gt;
                &lt;td class="aantal"&gt;&lt;input type="text" name="txtAtl3" value="0" id="txt3"/&gt;&lt;/td&gt;
                &lt;td class="btw"&gt;21&lt;/td&gt;
                &lt;td&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;Product 4&lt;/td&gt;
                &lt;td class="basisprijs"&gt;13.00&lt;/td&gt;
                &lt;td class="aantal"&gt;&lt;input type="text" name="txtAtl4" value="0" id="txt4"/&gt;&lt;/td&gt;
                &lt;td class="btw"&gt;21&lt;/td&gt;
                &lt;td&gt;&lt;/td&gt;
            &lt;/tr&gt;
        &lt;/tbody&gt;
</code></pre>

<p>Javascript:</p>

<pre><code>$(document).ready(setup);

function setup()
{
$('input').keyup(function refresh(){
    $("#tableBody tr").each(function() {
        $('this td:last-child').html("test");       
    });
});
}
</code></pre>
