2

I would like to show title of an image after "click" also on mobile devices.

So far I got this, however I don't know how to display the tooltip of the image.

 $(document).ready(function(){
    $('#imageID').on('click touchstart', function() {
        $(title).animate();
    });
});

Any help will be appreciated.

Ondrej Tokar
  • 4,898
  • 8
  • 53
  • 103
Lenka Franeková
  • 95
  • 1
  • 1
  • 5

1 Answers1

1

Try to do this and see if it helps:

How to show tooltip on click

or this:

jQueryUI tooltip Widget to show tooltip on Click

$('#imageID').click(function() {
    $('#imageID').tooltip({ items: "#imageID", content: "Displaying on click"});
    $('#imageID').tooltip("open");
});

If that doesn't work, try this: http://jsfiddle.net/jtnmC/12/

Community
  • 1
  • 1
Ondrej Tokar
  • 4,898
  • 8
  • 53
  • 103