Set a handler for a yet to be created node
$(document).on(
'click',
'.tooltip-selector',
function() {
console.log('Clicked: ' + $(this).html());
var sel = {
properties: {
title: $(this).html()
}
};
showDetails(sel);
});