The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript To-do-list Site issues Re: To-do-list Site issues


Ah okay, I think we’re on the same page now!

I have the same as you explained, with new items coming in checked.

If you add more than one item though, there is still the issue of all checkboxes controlling just one checkbox. Was this the case with your own test too?

This is due to this line (particularly the bold parts):
todoStatus = ““;

Which have to be there for the checkbox hack to work. I understand that there is no ID needed for the CSS of it, but for the actual functionality of the hack, I don’t think there’s a way around using an ID. Because of this, only the first checkbox added will work as expected. All subsequent boxes will just stay checked forever.