Ex: I have a <div arvalue="Teste Novo">
, and
document.querySelector("div[arvalue='Teste Novo']").style.backgroundColor = "green";
If I take out the space of arvalue
and put TesteNovo
and change the query arvalue='TesteNovo'
it works.
How can I tell JS that I have a space?