Jquery selector gives error for visuallyhidden element

Bronze Contributor
Bronze Contributor
Hi

I've some elements tracked with jquery onhalndler but one of them has a span class 'visuallyhidden', which gives error and not tracked. The error on the console is htmlanchorelement is anonymous.

Anyone know how I can solve this issue
1 REPLY 1

Jquery selector gives error for visuallyhidden element

Employee Emeritus

Hi @abkarim,

You may have come across a shadow element (part of the shadow dom) and is accessed a little differently.

For more information on that, see: https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM

Hope that helps!

Regards,

Ribal

Public