Press "Enter" to skip to content

How to enable bootstrap tooltip for dynamic added elements

WPExpert 0

Some time we face a problem to show tooltip for dynamic added element using jquery. Tooltip not works as normal work for others element. To remove that type of issue we need to add following code to fix that issue.

Jquery :
$('body').tooltip({

    selector: '.removeRowId'

});
HTML
<div class="input-group-btn removeRowId" data-toggle="tooltip" data-placement="left" title="Remove row" data-trigger="hover">

<button class="btn btn-danger form-control" type="button" onclick="remove_education_fields('+ room +');"> 

<span class="glyphicon glyphicon-minus" aria-hidden="true"></span> 

</button>

</div>

Leave a Reply

Your email address will not be published. Required fields are marked *