1
I would like to pay all div containing exactly class '1 2 3' Example.
<div data-full="true" class="1 2 3 4">
<div class="1 2 3">text</div>
</div>
<div class="1 2 3">text</div>
<div class="1 2 3">text</div>
<div data-full="true" class="1 2 3 4">
<div class="1 2 3">text</div>
</div>
But I need him to ignore in this case the first div and her children and the last div and her son. all parent div has the data-full="true" element i tried earlier to use java script so however it selects all
var teste = document.querySelectorAll('.1.2.3');
for (var i=0, len=teste.length|0; i<len; i=i+1|0) {
console.log(teste[i]);
}
according to the link https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName however it did not work with my tests.
I gave this answer in a simple way, with basic code, but I believe that an answer using Array or JSON is more appropriate... only I have no knowledge of it
– hugocsl
Regex tb may be a solution, but tb have no technical knowledge
– hugocsl
I didn’t know about this problem of starting with a number, but I also never thought about using a number... Living and learning
– Costamilam