I'm making simple todo list with jQuery and am stuck with a problem on how to correctly edit the content of an li element by double clicking. I wrote a function, but it doesn't work properly. 'Delete' button after editing transfrom to simple text. Here is my JS code: function addListItem() { ...