1

I want to have a tooltip display an image. I tried the methods described here, but nothing worked. I've also tried other jQuery UI widgets, and they do work. Here is my code:

HTML:

<a id='gamercard' href='https://live.xbox.com/en-US/Profile?Gamertag=Daddy+Kiefer' title=''>Daddy Kiefer</a>.</p>

js:

$(function () {

   $("#gamercard").tooltip({
       content: '<img src="http://gamercard.zaamit.com/nxe/Daddy%20Kiefer.png" />'
   });
});

Any advice on where I'm going wrong would be appreciated.

Community
  • 1
  • 1
dkiefer
  • 501
  • 5
  • 13

1 Answers1

1

Works for me with exact same code above:

http://jsfiddle.net/fiddleyetu/wu23h/show/

$(function () {

   $("#gamercard").tooltip({
       content: '<img src="http://gamercard.zaamit.com/nxe/Daddy%20Kiefer.png" />'
   });
});
PeterKA
  • 24,158
  • 5
  • 26
  • 48
  • After a little more inspection, I realized my jquery ui file was out of order. It works now, thanks! – dkiefer May 14 '14 at 17:59