removeValue js code example
Example 1: clear input jqueyr
$('#inputButtonID').val('');
Example 2: js remove from array by value
const index = array.indexOf(item);
if (index !== -1) array.splice(index, 1);
Example 3: delete parent js
parentElemnet.appendChild(childElemnet);
childElemnet.appendChild(buttonRemoveElement)
buttonRemoveElement.onclick = () => {perentElement.remove(childElement)}