0
ma API is returning me a token. I get this value in my html in a div with the id token. Then I create a variable in my javascript to capture the value of this div, ie,
var variavel = document.querySelector("#token");
And when I try to print on the console it returns like this:
token value I tried with . value at the end and it returns Undefined to me on the console.log What do I need to do for him to return only the token value to me? Thank those who respond!
capture the value of this div? or input? places the html where the token is appearing. complete your question
– Julio Henrique