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