[Solved] Append checked checkboxes to a div


Try this:

$(":checkbox").on("click", function(){
    if($(this).is(":checked")) {
        $(this).closest("td").siblings("td").each(function(){
          $("#seleted-rows").append($(this).text());
        });
    }
    else {
     $("#seleted-rows").html("");
     $(":checkbox:checked").closest("td").siblings("td").each(function(){
       $("#seleted-rows").append($(this).text());
     });
    }
})

FIDDLE

1

solved Append checked checkboxes to a div