3
How to do for when I pass the mouse on top of mine td
, show the edit icon on 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
in any td of my table it shows the right-aligned edit icon.
I’m not sure I understand the question... is this what you’re looking for? --> http://jsfiddle.net/ndo9psme/
– Sergio