Getting inner Div

var mainDiv = document.getElementById('mainDiv'),
childDiv = mainDiv.getElementsByTagName('div')[0],
requiredDiv = childDiv.getElementsByTagName('div')[1];

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here