JSFiddle - React, Tailwind, and code Playground
by taoist
HTML
<span id="list-1">Hi mom</span>
<input type="checkbox" class="checkbox-five-box" value="1" id="list-box-1" name="" />
CSS
.strike1 {
text-decoration: line-through;
}
JavaScript
var counter = 1;
$("#list-box-"+counter).on('click', function() {
$("#list-"+counter).toggleClass('strike1');
});