Using datatables created items in jquery.
Using datatables created items in jquery.
Hi All, I have a pretty nice table but need to interact with that table via jquery. for each row on the table I have used customFnRowCallback to inject an image:
[code] if (aData[9] >0 && aData[9] < 4) {
$('td:eq(9)', nRow).html('');
} else {
$('td:eq(9)', nRow).html('');
}
return nRow;
[/code]
When this renders out, I can see using chrome inspect element the following html:
[code]
[/code]
I want to get a mouse over event on this using jquery but I just cant hit it! I have tried:
[code]
$("#testing").on("mouseenter", function (e) {
e.preventDefault();
alert("hi");
[/code]
and
[code]
$(".holdertips").on("mouseenter", function (e) {
e.preventDefault();
alert("hi");
[/code]
Neither of these ever give me the alert.. Can anyone help?
many thanks
[code] if (aData[9] >0 && aData[9] < 4) {
$('td:eq(9)', nRow).html('');
} else {
$('td:eq(9)', nRow).html('');
}
return nRow;
[/code]
When this renders out, I can see using chrome inspect element the following html:
[code]
[/code]
I want to get a mouse over event on this using jquery but I just cant hit it! I have tried:
[code]
$("#testing").on("mouseenter", function (e) {
e.preventDefault();
alert("hi");
[/code]
and
[code]
$(".holdertips").on("mouseenter", function (e) {
e.preventDefault();
alert("hi");
[/code]
Neither of these ever give me the alert.. Can anyone help?
many thanks
This discussion has been closed.