Event and dinamoc elements in the table
Event and dinamoc elements in the table
The problem that i found is when you define a event for example
[code] $('#tabla tr').click( function() {
alert("me hiciste click");
} );
[/code]
the event run with the tr element that exist before the $('#tabla').dataTable(...) invocation
, the tr element that the "sAjaxSource": 'json_source.txt' create dont have the event
the same when you add rows with [code]table.fnAddData( ...)[/code]. This rows dont have the event
I found but i dont have the solution.
Thank
[code] $('#tabla tr').click( function() {
alert("me hiciste click");
} );
[/code]
the event run with the tr element that exist before the $('#tabla').dataTable(...) invocation
, the tr element that the "sAjaxSource": 'json_source.txt' create dont have the event
the same when you add rows with [code]table.fnAddData( ...)[/code]. This rows dont have the event
I found but i dont have the solution.
Thank
This discussion has been closed.
Replies
Allan