document.write("
$('input:checkbox').change(function(){ var row = $(this).closest('tr'); if($(this).is(":checked")) { row.addClass("bg-success"); } else { row.removeClass("bg-success"); }});