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

ram3772340ram3772340 Posts: 5Questions: 0Answers: 0
edited June 2011 in Bug reports
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

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    http://datatables.net/faqs#events :-)

    Allan
  • ram3772340ram3772340 Posts: 5Questions: 0Answers: 0
    Thanks allan.
    PS: if a email sent when people comment on our post will be really helpful.
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    It should actually do that already - it is possible that it might have ended up in your junk folder if you have a spam filter on though. If you click on your user name you will get access to notification preferences.

    Allan
This discussion has been closed.