function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
YiQin HeYiQin He 

How to add event for new DOM element


I am trying to dynamically create a new button element in a init function in my lightning component, but I have no idea how to add a click event for this button.
Does anyone try this before?