How can I call a javascript function and pass into it a row's object?
<p>I have the following jQuery:</p>

<pre><code>$('#dataTable').on('click', 'tbody tr', clickHandler);
</code></pre>

<p>Here's the first few lines of my gridClickHander</p>

<pre><code>function gridClickHandler(event) {
    $(oTable.fnSettings().aoData).each(function () {
        $(this.nTr).removeClass('row_selected');
    });
    $(this).addClass('row_selected');
    var rk = $(this).attr('data-rk');
    var pk = $(this).attr('data-pk');
</code></pre>

<p>This code now works very well. </p>

<p>Next I would like to do the same thing as the click event on a row but by using javascript/jQuery code calling the gridClickHandler. For example on a row with an id="row_25".  Is there a way I can do this? Sorry but again I am confused abut how to deal with the $(this).</p>

<p>Here's my code:</p>

<pre><code>  if (obj.entity == "City") {
                var html = obj.$form.find("#select-topic").html();
                var indx = obj.$form.find("#select-topic").index()
                $("#input_TempRowKey_" + obj.rownum).html(html);
                $("#input_TempRowKey_" + obj.rownum).eq(indx).attr('selected', 'selected');
                var title = obj.$form.find("#Title").val();
                $("#input_Title_" + obj.rownum).val(title);
                $("tr#row_" + obj.rownum).attr("data-rk", json.rowKey);
                // here I need to do the same as though a user just clicked on rownum
            }
</code></pre>
