Considering I have this div:
<div class="ResCheckIn">
<div class="ResDtlLabel">
Check-in
</div>
Thursday, October 18, 2018
</div>
I simply want to get the string "Thursday, October 18, 2018", so excluding the inner div.
If I try with .innerHMTML:
document.querySelectorAll('.ResCheckIn').innerHTML;
It returns everything in .ResCheckIn, including the inner div with class "ResDtlLabel", so this:
<div class="ResDtlLabel tSmall tLight">
Check-in</div>
Thursday, October 11, 2018
And ideally I would love to do that without using jQuery.