attasz
12-05-2009, 11:38 AM
Hy! I made a table,different information in every row,like:
<table>
<tr>
<td id = 'cell1'>Some title</td><td>Some description</td><td>Some name</td>
</tr>
<tr>
<td id = 'cell2'>Some title2</td><td>Some description2</td><td>Some name2</td>
</tr>
<tr>
<td id = 'cell3'>Some title3</td><td>Some description3</td><td>Some name3</td>
</tr>
</table>
I want a different image for row1,row2,row3 on hover.
I can do this if i have one row and one picture,but i don't know how can i get the id from the rows with jquery,and how to pass those variable id-s to jquery.
So how will jqery know which "<td>" triggered the action?
<table>
<tr>
<td id = 'cell1'>Some title</td><td>Some description</td><td>Some name</td>
</tr>
<tr>
<td id = 'cell2'>Some title2</td><td>Some description2</td><td>Some name2</td>
</tr>
<tr>
<td id = 'cell3'>Some title3</td><td>Some description3</td><td>Some name3</td>
</tr>
</table>
I want a different image for row1,row2,row3 on hover.
I can do this if i have one row and one picture,but i don't know how can i get the id from the rows with jquery,and how to pass those variable id-s to jquery.
So how will jqery know which "<td>" triggered the action?