Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to set random data-id with two value A y B. I need a script that can do this

What I have tried:

<div class="demo" data-id="A" />
....
</div>
Posted
Updated 24-Feb-22 8:56am
v10
Comments
Andre Oosthuizen 24-Feb-22 15:16pm    
Luckily we can not read minds here otherwise we would have had a dull communicating species on hand! No code, no explanation, even stackoverflow stopped helping you...

if I read your mind correctly, which I doubt!!!! see THIS

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900