помогла замена document.getElementById('wrap').innerHTML += "<div id='item" + id +"'><a onclick=edit_item(\"" + id + "\")>" + task + "</a> <a href=\"#\" id='itemdel" + id + "'>X</a></div>"; на $("#wrap").append("<div id='item" + id +"'><a onclick=edit_item(\"" + id + "\")>" + task + "</a> <a href=\"#\" id='itemdel" + id + "'>X</a></div>");
|