Streaming live at 10am (PST)

Onclick Custom Attribute


#1

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?


#2

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