How to get phone through document.querySelector

16 Views Asked by At

So I have this code

<span data-testid="phone_number" class="-ROQ5" data-default-style="{&quot;backgroundColor&quot;:&quot;&quot;,&quot;border&quot;:&quot;&quot;}" style="background-color: rgba(255, 0, 0, 0.5); border: 2px solid rgb(50, 195, 105);">+880500002636</span>

I need to get document.querySelector phone number 880500002636 How I can do this?

I need to create JavaScript variables for google ads

0

There are 0 best solutions below