I should create some kind of a checklist.
If the user clicks on some task (in this case a <li>
) the task should disappear and get strike-through. I solved this with toggling jQuery class:
$('li').click(function() {
$(this).toggleClass("checked unchecked");
});
Everything works fine. If the user clicks on a list item, the class changes from "unchecked" to "checked".
But there is an option to add new tasks (the little plus icon above). If you add an new list item, the class changer does not work for this. If you click on it, nothing happens.
I hope you guys understand me, my english is not so great :-)
Have a look: http://www.predatordesign.de/todoliste.