How do I get the id of the ".item" element from inside the getJSON function?
jQuery(document).ready(function() {
    $(".item").tooltip({
        items: "div",
        content: function(callback) {
            $.getJSON('mydata.json', function(data) {
                var country = event.target.id;
                console.log(country);
            });
        }
    });
});
I've seen an explanation here, but I'm not sure how to pass the event(s) in my case.
 
     
     
     
     
    