jquery script not working under chrome, safari and partially opera, FF is ok
<p>today I have been asking here for help with this <a href="http://stackoverflow.com/questions/8397096/select-exact-number-of-table-td-after-a-radiobutton-is-checked">script</a>.</p>

<p>It was successfully done – thanks again to RKW.</p>

<p>I've merge the code with my previous one, and everthing seems working well – under FF. But now, I've tryed it under Chrome, Safari (mac) and Opera.
In Chrome and Safari the script isn't doing enything at all (and the error console stay clear). Under opera only the first part is working – the class active is added.</p>

<p>Any suggestions?</p>

<pre><code>$(document).ready(function(){
    $('input').focus(function() { /* add class active to parent div */
        $('div').removeClass('active');
        $(this).parent().parent().parent().addClass('active');
        $(this).closest("div").addClass('active');
    });

    $('input:radio').focus(function() { /* add class highlight to specified tds in one column */
        var num = 2;
        var col = $(this).closest('td').index() + 1;
        var row = $(this).closest('tr').index();

        var tds = $('td:nth-child(' + col + ')');
        tds = tds.slice(row,row+num);

        $('td').removeClass('highlight');
        tds.addClass('highlight');
    });
});
</code></pre>
