-1
<div class="address">
firstname lastname<br>company<br>vat number<br>postcode<br>1000 street<br>Country<br>05324324
</div>

// let template = document.querySelector('.address').value;

I need the div's all text to store a variable, then check this variable contain a word (for example postcode) then return boolean true or false

kcsaba94
  • 3
  • 2
  • You want the `innerText` of the DOM node you are selecting - https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText – romellem May 26 '22 at 15:26

0 Answers0