select parent element javascript code example
Example 1: how get parent element javascript
var parent = document.getElementById("myElement").parentElement;
Example 2: select parent of elemt
$(this).parent(); // jquery
var parent = document.getElementById("myElement").parentElement;
$(this).parent(); // jquery