DEV Community

Md Abdullah al noor
Md Abdullah al noor

Posted on

1

set/attach invisible/unseen attribute/value into html element through vanilla js

I set data attribute as a id to my html element but when I console log or debug html element i can see the data id (1,2)....

how I will do it invisible or unseeable ? or is there is a way do it invisible or unseeable ?

below example..

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay