I want to add a class("fila_art") to every row in a dynatable table so when i click on them another one is added("marcar"). I tried this:
$('#tableId').dynatable({
table: {
defaultColumnIdStyle: 'camelCase'
}
}).bind('dynatable:afterProcess', processingComplete());
function processingComplete (){
$("#tableId").children("tbody").children().addClass("fila_art");
}
$( ".fila_art" ).live("click", function() {
$(".fila_articulo").removeClass("marcar");
$(this).addClass("marcar");
});
But when i make a search on the table the code stop working and i can't add the class("marcar") anymore. I checked the code after the search and the class "fila_art" was not added anymore. Any ideas? Sorry about the spelling.