How to add mauseover event into cells?
How to add mauseover event into cells?
darkhorn
Posts: 4Questions: 0Answers: 0
I was able to add class names into the cells but I cannot add the mouse-over event. Here is my HTML code. The table is generated according to the data fetched from the server.
Hthe code is here https://gist.github.com/anonymous/4712916
And the event that I'm trying to add is this but it does not work. I think it is because the table is created very late. [code]
$(".ilhan").hover(
function () {
$(this).append($(" Edit | Delete"));
},
function () {
$(this).find("span:last").remove();
}
);
//li with fade class
$("li.fade").hover(function(){$(this).fadeOut(100);$(this).fadeIn(500);});
[/code]
Hthe code is here https://gist.github.com/anonymous/4712916
And the event that I'm trying to add is this but it does not work. I think it is because the table is created very late. [code]
$(".ilhan").hover(
function () {
$(this).append($(" Edit | Delete"));
},
function () {
$(this).find("span:last").remove();
}
);
//li with fade class
$("li.fade").hover(function(){$(this).fadeOut(100);$(this).fadeIn(500);});
[/code]
This discussion has been closed.