Double Click Function
Double Click Function
mykromo
Posts: 2Questions: 0Answers: 0
Hi Guys!
Good day!
I need your help and I'm new here. :)
I'm encountering weird problem when i created a double click function to get data of specific column.
first 10 row of data, when I double click to the row, it did the right thing that i want execute (Alert).
but when i click the next button and then do the same thing (Double Click) the function didn't work.
Can you help me with this? please.. thanks!
Here's the code.
[code]
$(document).ready(function() {
/* Init the table */
var oTable = $('#example').dataTable( );
$('#example tr').dblclick(function() {
var aPos = oTable.fnGetPosition(this);
alert(aPos);
});
});
[/code]
God bless you!
Best regards,
Myk
Good day!
I need your help and I'm new here. :)
I'm encountering weird problem when i created a double click function to get data of specific column.
first 10 row of data, when I double click to the row, it did the right thing that i want execute (Alert).
but when i click the next button and then do the same thing (Double Click) the function didn't work.
Can you help me with this? please.. thanks!
Here's the code.
[code]
$(document).ready(function() {
/* Init the table */
var oTable = $('#example').dataTable( );
$('#example tr').dblclick(function() {
var aPos = oTable.fnGetPosition(this);
alert(aPos);
});
});
[/code]
God bless you!
Best regards,
Myk
This discussion has been closed.
Replies
You may want to check this page out: http://api.jquery.com/live/