I have a div with the following code :
<div id='mydiv' title="<span id='myspan'>Hi there</span>">
I'm using the JQuery's tooltip
$("#mydiv").tooltip({
content: function () {
return $(this).prop('title');
},
open: function (event, ui) {
ui.tooltip.css("max-width", "800px")
},
position:{
my:"left+10 top+25",
at:"left top"
}
});
The Tooltip works fine, however I'm unable to target the span inside the tooltip, $('#myspan').html() returns null.
Any ideas ?
Thanks !