#113664
admin
Keymaster

Hi,

What is the idea of the provided code? What do you try to achieve with it? In JS, it’d be better to use setAttribute and getAttribute to get/set attributes. If you set custom attributes, it’s better to use data- notation.

Regards,
Markov