18/07/2020
var submit = document.getElementById("submit");
var error = document.getElementById("error");
var delet = document.getElementsByClassName("delete");
submit.onclick = function()
{
var item = document.getElementById("item");
var all = document.getElementById("app").innerHTML;
var element = document.getElementById("app");
if(item.value.trim().length > 0){
element.innerHTML =
""+""+""+"delete"+""+
""+item.value+""+""+""+"" + all;
item.value = "";
error.textContent = "";
}else{
error.textContent = "unvalid input ....";
setTimeout(function(){
error.textContent = "";
},2000);
}
for (var i=0 ; i