<div class="faddress">
1 myroad valley<br>beverly, VT 54803-0989<br>(435) 425-9090 <br><br>
<a href="someline.html" target="_blank" title="RBP">RBP</a>
<br><span>(435) 425-9090 </span>
<div class="mE">1 myroad valley beverly, VT 54803-0989</div>
</div>
I am trying to get only 1 myroad valley and I used the following JS:
var vAdd = $(".mE").text();
var vArr = vAdd.split(" ");
console.log(vArr[0]);
I keep getting the following: 1 myroad valley beverly, VT 54803-0989
How can I modify the code to get the desired result.
vAddat runtime. Then it should be easy to find the right split character.