The jQuery events on elements contained in lines hidden (because of the pagination) are disabled

The jQuery events on elements contained in lines hidden (because of the pagination) are disabled

arnolemarnolem Posts: 2Questions: 0Answers: 0
edited June 2011 in Bug reports
DESCRIPTION :
The jQuery events on elements contained in lines hidden (because of the pagination) are disabled

REPRODUCE :
1 - Click on the first "toto" button
2 - You can see the Alert box "toto"
3 - Click on "Page 2"
4 - Click on antoher "toto" button
5 - Fail : no alert box

CODE :
[code]



Action








<!-- 100 same rows -->




$(document).ready(function() {

$('.tab').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bStateSave": true
});

$('.toto').click(function(){
alert('toto');
});
});

[/code]

Replies

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin
    http://datatables.net/faqs#events

    Allan
  • arnolemarnolem Posts: 2Questions: 0Answers: 0
    Thanks ;)
This discussion has been closed.