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

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]
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]
This discussion has been closed.
Replies
Allan