Access Table Row containing radio button
<p>I've a table containing a number of rows, where each row contains 3 td elements, the last of which is always a radio button. </p>

<p>I've a jquery function which is fired when any of these radio buttons is checked:</p>

<pre><code> $('input[type=radio]').change(function() {
        $('input[type=radio]').each(function(index) {
            //remove class from tr
        });
        //add class selected to tr
    });
</code></pre>

<p>What I'm looking to do is change the class of the tr containing the selected radio button to 'selected' and remove the class 'selected' from the previous selected option (for highlighting). Is there any way to access the tr from the radio button?</p>
