Return to Snippet

Revision: 27923
at June 26, 2010 23:18 by phil7085


Initial Code
$(document).ready(function() {

  $('li').tipsy({
    fade: false,
    gravity: 's',
    title: function() { 
      if (this.getAttribute('original-title') !== '') {
        return this.getAttribute('original-title'); 
      } else {
        $(this).tispy();
          // Not perfect, need it to actually not call tipsy on an empty title, this works but not sure why or how.
      }
    }
  });

});

Initial URL

                                

Initial Description

                                

Initial Title
Using the jQuery tipsy plugin on a list item

Initial Tags
list, jquery

Initial Language
JavaScript