The checkbox is in td , so first you need to get the parent:
$("input:checkbox").on("change", function() { $(this).parent().next().find("label").text("TESTTTT"); });
Alternatively, find the label with for with the same id (possibly more productive than the backtrack):
$("input:checkbox").on("change", function() { $("label[for='" + $(this).attr('id') + "']").text("TESTTTT"); });
Or, to be more concise, simply this.id :
$("input:checkbox").on("change", function() { $("label[for='" + this.id + "']").text("TESTTTT"); });
Abhitalks
source share