Created
October 12, 2017 09:10
-
-
Save EkoJR/836deab9e56b706c01610ee1bdd87094 to your computer and use it in GitHub Desktop.
tooltip html rendering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready( function($) { | |
function apl_init_tooltips() { | |
jQuery( '.apl-tooltip' ).tooltip({ | |
// content: function( callback ) { | |
// //callback( $( this ).prop('title').replace( '(<br([\s]?[\/]?)?>)', '<br />' ) ); | |
// } | |
content: function( callback ) { | |
callback( $( this ).prop( 'title' ) ); | |
} | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment