Datatables grid looses jquery hover events on buttons in javascript when the next page is clicked
Datatables grid looses jquery hover events on buttons in javascript when the next page is clicked
ram3772340
Posts: 5Questions: 0Answers: 0
Hi,
I am fairly new in using this datatable grid. I found a weired problem in a style applied to a button in a grid column. Below is the code bound in the java script which would be applied to all the buttons in the grid column. This works perfect when the page is initially loaded, but when the next page entries button in the grid is clicked the hover event is lost. I am not able to find why.
[code]
$('#btnViewDownload').hover(
function () { $(this).addClass('ui-state-hover'); },
function () { $(this).removeClass('ui-state-hover'); });
[/code]
Has anybody faced similar problem please help out.
Thanks ahead,
Ram
I am fairly new in using this datatable grid. I found a weired problem in a style applied to a button in a grid column. Below is the code bound in the java script which would be applied to all the buttons in the grid column. This works perfect when the page is initially loaded, but when the next page entries button in the grid is clicked the hover event is lost. I am not able to find why.
[code]
$('#btnViewDownload').hover(
function () { $(this).addClass('ui-state-hover'); },
function () { $(this).removeClass('ui-state-hover'); });
[/code]
Has anybody faced similar problem please help out.
Thanks ahead,
Ram
This discussion has been closed.
Replies
Allan
PS: if a email sent when people comment on our post will be really helpful.
Allan