Show/hide icon when hovering over table row using jquery tables plugin

Show/hide icon when hovering over table row using jquery tables plugin

danny05158danny05158 Posts: 1Questions: 1Answers: 0

I am working with jquery table datatable plugin and want to show hide an icon when hovering over table row.

I have tried to do this in css with:

pencil{display:none}

.pencil-wrapper:hover + #pencil{
display:inline-table}

This is what I have tried with css. However since im using jquery table plugin maybe there is a way to do it inside the $('#').DataTable(); object.

<td>
<span id="pencil-wrapper">
<i id="pecil" class="fas fa-pencil-alt"></i>
</span>
</td>

Answers

This discussion has been closed.