Using Javascript, I'm trying to change the class of the first TD of a table row. Using a button which appears in the same row. what do I add before the "addClass" to make it only target only the row its in, and the first table data of that row?
$("table").on("click", ".checkbox", function() {
.addClass("line");
});