Click event not responding

Click event not responding

emil_a_83emil_a_83 Posts: 2Questions: 0Answers: 0
edited March 2014 in DataTables 1.9
Hi, pretty new to this, but I'm trying to get a alert when a row in table is clicked. Can't get any response...
[code]
<?php echo $this->Html->script('jquery-1.11.0.min'); ?>
<?php echo $this->Html->script('jquery-ui-1.10.4.custom.min'); ?>
<?php echo $this->Html->script('jquery.dataTables.min'); ?>


$(function() {
$('#articles-table').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "<?php echo $this->Html->Url(array('controller' => 'Articles', 'action' => 'ajaxData')); ?>"
});

$('#articles-table tbody tr').live('click', function () {
alert('hej');
});
});



Artikelnummer
Benämning
Typ
Benämning 1



Loading data from server...



[/code]

http://debug.datatables.net/oritem

Please advice me! Thanks in advance!

Emil Abrahamsson

Replies

  • emil_a_83emil_a_83 Posts: 2Questions: 0Answers: 0
    Also tried use .click(function() {}); but that won't work either...
This discussion has been closed.