I am creating buttons dynamically (using html content as string). I need to pass a variable to the onclick function of the button. Below is my code.
yesBtnLbl