Hello, I have two functions, one that eliminates rows, and another that edits, this I carry out with $(document).on('click', function...);
Function 1:
$(document).unbind('click').on("click",".btr",function(){
alert('click');
if( $("#articulos tr").length > 2 )
{
var parent = $(this).parents().parents().get(0);
$(parent).remove();
}//end if });
Function 2:
$(document).unbind('click').on('click', '.bte', function(){
//extraigo el index
index = $('.bte').index(this);
//extraigo el nombre con index
nombre = $('.articulo').eq(index).val();
});
THE PROBLEM :. If I remove one, the other works correctly, but if I have both, it does not work for me.