Home » javaScript » Bootstrap Tooltip intialization

Bootstrap Tooltip intialization

Some times ajax loading is required for refresh content of a page. That time bootstarp tooltip is not work smoothly. That time we need to re-initialize the bootstrap tootip js using following code. After that tooltip will work like normal.

<a href=”javascript:void(0);” rel=”smarttooltip” data-original-title=” Total hits of posts over last month “><?php echo $this->influences; ?></a>

<script type=”text/javascript”>
jQuery(function () {
    jQuery(“[rel=’smarttooltip’]”).tooltip({placement: ‘bottom’});


Leave a Reply


Check Also

How to Check Expired Sessions using jQuery Ajax and PHP

We can achieve using the php and ajax.The following ajax call execute in every 10 ...