Hello I have made this To-Do project
And I want to create a button that when you click it, it will print ONLY the todos as shown below (shopping, homework, pay the bills).
So i want to print something like this in the paper:
I have searched it up and I have seen ways that only print the ID of the div. However, in my code I dont use ids. In the javascript and html file of this project, I only use class names. I have tried adding id names too in the divs and then use the js code to print, but it doesnt work because my project only works with classes on the divs.
I am a begginer in javascript, sorry if I dont make this clear enough.
Can someone provide me with a working method?