Onclick Custom Attribute

I am trying to add Custom Attribute “onclick” but when I type it under Custom Attribute name field it shows ‘This is a reserved name.’ What am I doing wrong?

That is correct. It is a reserved attribute.

You’ll have to write some custom code to bind the click event handler to the element you want instead.

See https://stackoverflow.com/a/14703668/584192 for an example

Trying to do the same but not code savvy enough to understand how to solve this… help

Hi @yahli - Welcome to the forum. To start, please share the details of what your onclick code is, and a read-only link to your site.