Redirect to a link by clicking on a row which contains it
- by Shymep
I have a table
<tr>
<td>xxx</td>
<td>yyy</td>
<td><a href="javascript:__doPostBack('smth','')">Select</a></td>
</tr>
<tr>
...similar here
</tr>
My goal is to redirect to the select page link by clicking on the row. I was trying to implement such construction
$("table tr").click(function() {
$(this).find("a").click();
});
and also a few tricks with window.location but it didn't help.
UPDATED:
I'm getting errors like