I\'m using custom divIcons for my Leaflet markers. I want to add a border to whatever marker I click on, with some simple CSS:
.selectedMarker { border: 10px
In 1.0 and 0.7 you can use L.DomUtil to add remove classes from a DOM element:
L.DomUtil.addClass(marker._icon, 'className'); L.DomUtil.removeClass(marker._icon, 'className');