/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(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. } } }); });
Comments
