On a click event for a div, I'm trying to assign a variable the text value of the first child of that divs parent div. For example, the html is something like this:
<div class="parentDiv">
<div class="firstChild">
1234
</div>
<div class="secondChild">
Hello
</div>
<div class="thridChild">
Bye
</div>
</div>
So I want it to assign a variable the text value of the firstChild div whenever the click on anything inside the parent div. How would you go about doing this?