for (key in this.mybutton)
       button = this.mybutton[key]
       $(button).click(function() {
            console.log("click:" + button)
       });
The result is always the name of the last button. How can I add multiple listeners in jQuery/javascript or erase the javascript reference button to a string in the for.
thanks in advance
 
     
    