Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get parent id javascript

var x = document.getElementById("ID").parentElement.nodeName;
 
PREVIOUS NEXT
Tagged: #parent #id #javascript
ADD COMMENT
Topic
Name
5+9 =