title: Change style in leaflet easybutton.js
body: <p>I am using the leaflet plugin easybutton.js I have added 2 buttons, but I would like to change the background color of them at different points but I am can't seem to fully get there. I can change the background color when adding them but the effect only takes when clicked and I would also like to be able to change the background color at different points.</p>
  
  <p><a href="https://github.com/CliffCloud/Leaflet.EasyButton" rel="nofollow noreferrer">https://github.com/CliffCloud/Leaflet.EasyButton</a></p>
  
  <p>The buttons are added like so</p>
  
  <pre><code>L.easyButton('&lt;img src="img/myimage.jpg"&gt;', function(btn, map){
   btn.button.style.backgroundColor = 'yellow';
      var destination = [newlat, newlng];
      map.setView(destination);
  }).addTo(map);
  
  L.easyButton('&lt;img src="img/myimage2.jpg"&gt;', function(btn, map){
      btn.button.style.backgroundColor = 'red';
      var destination = [52.450439,-1.729660];
      map.setView(destination);
  }).addTo(map);
  </code></pre>
  
  <p>As you can see, this changes the background color but only when clicked and if I want to change any of these later how do I do it? Do I have to give them an id or something?</p>