I have a table and each row contains select tag.
<table>
<tr>
<td><select onchange="function(this.value)">
<option value="1">1</option>
<option value="2">2</option>
</select>
<td>
</tr>
<tr>
<td><select onchange="function(this.value)">
<option value="1">1</option>
<option value="2">2</option>
</select>
<td>
</tr>
<table>
I want to pass the row index to the function(). How can it done?