My question is about arrays and its verification. The following is necessary.
There are data-id="38383" on the page with the data-id="38383" , and these id always different.
What you need : write in the array defined id . Next, we check for the presence of these div with the data-id attributes specified in the array and perform adding a class to this block with the specified id .
Looks like that:
<div class="pr" data-id="10230"></div>