this use clone and insertAfter(insert after clone element) and update the
content

var insertDataBefore = $('#tablaFormulario').find('tr:last')

insertDataBefore.clone(true).insertAfter(insertDataBefore).find("td").each(function()
{
    $(this).find("select").attr({"name":"tipo"+count,value:""});
    $(this).find("input").attr({id:"informacion"+count,value:""});
    $(this).find("img").removeClass("opacity").click(function(){
   $(this).parents("tr:first").remove();
   count--;
  });


-- 
Atte.
Carlos Becar.

Reply via email to