Line-through on click & remove on second click

I am trying to create an on-click line-through for a bunch of words (item #1, item #2, item #3). I want it to be line-through when clicked, and if the same word is clicked a second time the line-through should disappear again.

CODE: (not much to see though)

<p> Item #1<br> Item #2<br> Item #3<br> </p> 

I would prefer css.

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.