How can I select an element's parent row in a table?
<p>I have the following function:</p>

<pre><code>$("#example tbody").click(function(event) {
        $(oTable.fnSettings().aoData).each(function (){
            $(this.nTr).removeClass('row_selected');
        });
        $(event.target.parentNode).addClass('row_selected');
    });
</code></pre>

<p>When a user clicks on a td element in a table it adds the row_selected class to the row. However when a user clicks on an input element inside of a td then it adds the row_selected
class to the td. </p>

<p>Is there a way that I can change event.target.parentNode so that instead of the parent
it adds the class to the parent tr? </p>
