$( ".toggleCheckBox" ).change(function() { if($(this).is(':checked')){ $(this).parent().parent().find(".label").text("Active"); }else{ $(this).parent().parent().find(".label").text("Unactive"); } });