0

I have a table, where columns name is abbreviation, "UPV". I've created a function where it loads glyphicon question-sign icon explaining the abbreviation on hover.

$(document).ready(function() {
    $("body > div.wrapper-body > div.page-copy > div > div > div > div > div > div").on("loaded", function() {
            $("th:contains('UPV.')").prepend("<i class='glyphicon glyphicon-question-sign' data-toggle='tooltip' data-placement='top' title='Uzņēmuma prakses vadītājs'></i>");

             $('[data-toggle="tooltip"]').tooltip();
             
            $(".glyphicon").css("margin-right", "5px");
    });
});

The problem is that, that I have a search function at the top. Each time inputing somethingin the search field and loading it , it loads another loads glyphicon question-sign icon.

0 Answers0