Jump to content

Multiple to do lists


Recommended Posts

Hi, I would like to create multiple to do lists and add the ability to strike out text when clicked on a li element.

I'm using the code of this lesson: https://www.w3schools.com/howto/howto_js_todolist.asp. The problem is that if I add another list and click on a li element, it does not strike out text. It strikes out text only from the first list. How can I do that so it works in multiple lists?

Thanks in advance.

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...