I need to generate a javascript alert with State name text (or store it in a variable) when user mouseover on interactive choropleth map poligons (like this map) http://leafletjs.com/examples/choropleth.html
i try to store content of div class="info leaflet-control" but without success
thanks a lot!
I create this jquery code thanks to this post
$(".info.leaflet-control").bind("DOMSubtreeModified", function() { console.log($(".info.leaflet-control").find( "b" ).text()); });
and works!