I am creating some buttons dynamically and assigning them IDs.
When ever someone clicks that button I want to collect the ID and from there perform some task.
Just add a class name of new-button to the buttons you're creating and add a click handler afterwards.
new-button
So replace this code
0 讨论(0) 查看其它5个回答