Horje
remove list content js Code Example
remove list content js
function removeListItemByText(text) {
  const li = [...document.querySelectorAll("li")];
  li.forEach(elem => {
    if (elem.innerText == text) elem.parentNode.removeChild(elem);
  });
}

document.getElementById("button").onclick = function() {
  removeListItemByText("FA");
};




Javascript

Related
mongoose update array in object Code Example mongoose update array in object Code Example
JavaScript Strings Code Example JavaScript Strings Code Example
check if is function javascript Code Example check if is function javascript Code Example
javascript prevent iframe interaction Code Example javascript prevent iframe interaction Code Example
how to call function on every keypress in jquery Code Example how to call function on every keypress in jquery Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8