js remove method code example
Example 1: javascript remove element
var element = document.getElementById("someId");
element.parentNode.removeChild(element);
var colors=["red","green","blue","yellow"];
var blue=colors.splice(2, 1);
Example 2: remove in javascript
function arrayRemove(arr, value)
{
return arr.filter(function(ele){
return ele != value;
});
}
Example 3: .remove javascript
<div id="div-01">Here is div-01</div>
<div id="div-02">Here is div-02</div>
<div id="div-03">Here is div-03</div>