how get parent element javascript
snippet in javascript

how get parent element javascript

user2546

var parent = document.getElementById("myElement").parentElement;