javascript : .filterNot(cssSelector)
javascript : DomElementList.filterNot( cssSelector ) Target: Applicable with any DOM element or elements List. getElementById getElementsByTagName getElementsByClassName getElementsByName querySelector querySelectorAll select etc. Description : it return DOMNodeList of element/elements List with filter of selector that are not matched. Note: use for removing elements from list that are matched with selector. Syntax: DOMElement.filterNot( selector ) DOMNodeList.filterNot( selector ) HTMLCollection.filterNot( selector ) Usase: document.getElementById('firstDiv').filterNot( 'div' ) if element having id firstDiv is not div then the DOMNodeList that returned has firstDiv element otherwise the list will empty. document.getElementsByTagName('div').filterNot( '.firstDiv' ) the getElementsByTagName selects all div and filterNot() method removes all dives that has class name firstDiv and return DOMNodeList of all dives having not class firstDiv. document.getElem...