it's not possible to loop .click function (To create multipple buttons)
- by user1542680
Im Trying to create multiple buttons that each one of them doing something else.
It working great outside of the "each" loop, But in the moment I'm inserting the .click function in the .each function it doesn't work...
Here is the Code:
$.each(data.arr, function(i, s){
html += '<div id="mybtn'+s.id+'"><button…