Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $( ".tt" )
- .mouseenter(
- function(){
- $( '.tt-content', this )
- .tooltip(
- {
- items: ".tt-content"
- content: function() {
- var element = $( this );
- if ( element.is( ".tt-content" ) ) {
- return element.html();
- }
- }
- }
- ).tooltip( 'open' );
- }
- )
- .mouseleave(
- function(){
- $( '.tt-content', this ).tooltip( 'close' );
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement