Say you announced your tooltips as follows:
<a href="#" rel="tooltip" class="tip" title="Rating:' + rating + '">'+ name +'</a>
In the same file, make sure you include:
<script type="text/javascript"> $('.tip').tooltip(); </script>
Note that you must either reference this code after the HTML it refers, or wrap it in
<script type="text/javascript"> $(document).ready(function() { $('.tip').tooltip(); }); </script>
Also note that the jQuery selector refers to a tooltip class, not just the identifier for a single tooltip.
source share