0
I would like that by hovering over a cell in the table the column and the respective row of the cell change the background only to the cell. follows an example of how this and how I want it to stay:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
<tr>
<td>Ernst Handel</td>
<td>Roland Mendel</td>
<td>Austria</td>
</tr>
<tr>
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>UK</td>
</tr>
<tr>
<td>Laughing Bacchus Winecellars</td>
<td>Yoshi Tannamuri</td>
<td>Canada</td>
</tr>
<tr>
<td>Magazzini Alimentari Riuniti</td>
<td>Giovanni Rovelli</td>
<td>Italy</td>
</tr>
</table>
</body>
</html>
In that case my mouse was on Helen Bennett
That’s exactly it, now I’ll try to put on my table that is mounted dynamically thank you.
– Erick Zanetti
Good! The only thing you have to do is keep the content of each column in the attribute
data-col
. :D– user98628
I’m holding but I don’t know why the function isn’t called
– Erick Zanetti
It worked, as the table is generated dynamically I had to use the setTimeOut function to depos that render everything start the Jquery function.
– Erick Zanetti
Anything put there. D
– user98628