I have the following form and it has one of three divs (which have ids div1, div2 and div3) as a child div:
<form id="myForm" method="GET" action="action.php">
  <div id="div1 or div2 or div3">...</div>
</form>
The div in the form has a button. I need to pass this button's action listener (in JS) the id of the div it is a child of. 
So is it possible to get the div which is the parent element of the button (or alternatively the div which is the child element of the form- it's the same div right?) using simple_html_dom parser or something else? 
 
     
     
    