I am just working on simple TODO app. And I am trying to create a toogleable strike effect on a text on click. Here is my code.
css
.striked{
text-decoration: line-through;
}
jQuery
$("ul").on("click","li",()=>{
$(this).toggleClass("striked");
});
Any line inside the function runs but toogleClass shows no effect. Please help