I am trying to build a jQuery plugin that resembles the enlarge image on mouse over – but on table rows:
var trEnlargedCssMap =
{
position: 'absolute',
left: '50px',
top: '50px',
'font-size': '14px'
}
$('table tr').hover(
function()
{
$(this).clone().css(trEnlargedCssMap).show();
},
function()
{
$(this).hide();
})
It not close to working, any tips?
You have to append it to the DOM/table (whereever you want). I appended it to the existing table. You also should
.remove()any of the cloned elements when your hover out as opposed to hiding them. Please change the attributes as needed for your application.jsFiddle