I have a hover on event that I have to add after table rows are created, something like that I think.
This is the way it has to be done because in other way it does not work.
<script>
jQuery(document).ready(function() {
jQuery('#userstable').on('hover', '.email', function() {
$(this).append($("<span style='font-size:80%;'> <a href='#'>Edit</a>"));
});
});
</script>
I was unable to add the out event. How I’ll do it?
You want to do
on('mouseenter')andon('mouseleave')instead of hover.You can do them both at once like this: