I created a table with the rows under Div1, when I click on a button under Div1 table it triggers the event and calls the function, works fine. But when I copy the content of Div1 to Div2 using innerHTML, and when button under Div2 is clicked nothing triggers or event is not working.
I don't know what special thing needed to trigger the button click event from Div2.
Any help is appreciated.