How can I make when I hover over my td
, display the edit icon in it?
Note: My code does not work:
jQuery Event:
$(".editableSpan").mouseover(function(){
$("#tdEditable").append("<span id='widthSource'></span><span class='glyphicon glyphicon-pencil'></span>");
});
HTML:
<td id="tdEditable" class="editableSpan"><span id="widthSource"></span></td>
I would like that when the event is hover
on any td in my table it shows the edit icon aligned to the right.