Hello
I am having hard time trying to delete row from table 2 based on row index from table 1. This is my code.
$('.MyTable1').on('click','.cf-table-delete',deleterows);
function deleterows(){
$('.MyTable1 tbody tr').each(function(){
var i3 = $(this).index();
$('.MyTable2 tbody tr:('+(i3).toString()+' .cf-table-delete').click();
});
}
I am not sure if i am missing anything. Any help from is really appreciated.