http://docs.jquery.com/UI/Tooltip ## code in the documentation does not work

http://docs.jquery.com/UI/Tooltip ## code in the documentation does not work

Hi there,

I come from a different Javascript framework and I just wanted to try out jquery. Unfortunately I find it very hard. Since I want to leave the emotions out I directly jump to the problem I have (I assume you want to hear it).

I want to use a tooltip so I find the documentation (UI/API/1.9/Tooltip). This release is not even available but it try it anyway since at least the first sample works (it uses 1.8).

I scroll down the documentation and I find the following:

Code examples

Initialize a tooltip with the content option specified.
$( ".selector" ).tooltip({ content: function(response) {
$.getJSON("tooltipcontent.html", response);
} });

==> this does not work. I think there is something important missing.

I have the impression that other people failed with this one as well so you might consider to fix that.

I produced a variation that kind of works but unfortunately does not exactly what I want

  $(document).ready(function() {
    $("[title]").tooltip({ content: function(response) {
        $.getJSON("http://localhost:9999/time", response);
        return 'flawed!';
        } });
  });