I have the below code to find elements with their class name:
// Get the element by their class name var cur_columns = document.getElementsByClassName(\'colu
You can use this syntax: node.parentNode
node.parentNode
For example:
someNode = document.getElementById("someId"); someNode.parentNode.removeChild(someNode);