Thanks for your reply.
For sure I'm planning to use a recent version of JQuery, so I can ignore the 'delegate' and 'live' versions right and concentrate on 'on' - Have I understood this correctly?
Very confused that you would include the others in your answer - am I missing something here?
It's comforting that it's possible :-) I seached for the 'on' event thing and found
http://api.jquery.com/live/ but unfortuanately they only demonstrate 'live' and 'delegate'.
I've tried implementing it in my code using my best guess of how to do it and so in an external .js file loaded in the head of the document, I now have:
- jQuery(document).on(function($) {
$('#tooltip_demo a[title]').tooltip();
});
In my content loaded by ajax, I have:
- <div id="tooltip_demo">
<a href="#" title="this is a sexy tooltip">move your mouse over</a>
</div>
and in my CSS I have:
- .tooltip {
display:none;
background:transparent url(images/tooltip/black_arrow.png);
font-size:12px;
height:70px;
width:160px;
padding:25px;
color:#fff;
}
but it still doesn't seem to work. Can you tell me what I've done wrong please?
Many thanks!