in my popup is a spinner with class=spinner and an empty container for addon informations.
- I want to hide after successful ajax.
- I want to add some html in a container.
I tried this:
~~~
map.on('popupopen', function(e) {
var marker = e.popup._source;
$.getJSON(url,function(data) {
$(e.popup).find('.spinner').hide();
$(e.popup).find('container').html('same stuff')
});
~~~
It doesn’t work. Any ideas?