how to delete item with html input value in js code example Example: js remove value input document.getElementById("YourID").value = '';