diff --git a/js/list.js b/js/list.js index aaac674..84519d0 100644 --- a/js/list.js +++ b/js/list.js @@ -47,7 +47,7 @@ function checkItem() { status: $(this).prop("checked") }, success: function () { - var dataIdSelector = (("[data-id='" + dataId) + "'"); + var dataIdSelector = (`[data-id='${dataId}']`); console.log(dataIdSelector); // var color = $(dataIdSelector).data("color"); // $(dataIdSelector).parent().parent().removeClass("bg-danger");