Check out this HTML snippet:
<div>
756
<span></span>
</div>
I'm looking to use JavaScript to extract the value 756 from the div
element and add 1 to it. Any suggestions on how to accurately remove the <span>
tags inside the div to get only the number?