I'm pretty sure the ToolTip plugin *removes* the title tag from the
matched items

try something like this to confirm

<area state="AL" shape="poly" coords="omitted for brevity"
name="Alabama"></area>

$("area").tooltip({
        delay: 0,
        fade: 250,
        bodyHandler: function() {
            var content = $(this).attr("state");
            console.log(content);
            return $("<p>").html(content);
        }
});



On Dec 2, 2:21 pm, 703designs <[EMAIL PROTECTED]> wrote:
> Using:
>
>     $("area").tooltip({
>         delay: 0,
>         fade: 250,
>         bodyHandler: function() {
>             var content = $(this).attr("title");
>             console.log(content);
>             return $("<p>").html(content);
>         }
>     });
>
> console logs empty returns and the tooltip is empty. Note that this is
> an issue with the "attr" method, not "tooltip". If I set "content"
> equal to attr("shape") or attr("name"), name attribute supplied, the
> method works fine. Why would the title attribute return nothing on an
> element that returns all other attributes normally? Here's an example
> <area> that returns all non-title attributes:
>
>     <area title="AL" shape="poly" coords="omitted for brevity"
> name="Alabama"></area>
>
> Ideas? Why would only "title" fail to return?

Reply via email to