title: How to add multiple listeners in jQuery/javascript?
body: <pre><code>for (key in this.mybutton)
         button = this.mybutton[key]
  
         $(button).click(function() {
              console.log("click:" + button)
         });
  </code></pre>
  
  <p>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.</p>
  
  <p>thanks in advance</p>