//this code will grab and variables on the URL, wait until the page loads, and select those options //and also should disable once the user clicks on the screen (or it will keep grabbing it from the URL var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i $( document ).ajaxComplete(function( event, xhr, settings ) { $('.tooltip-button').attr('data-toggle', 'tooltip'); $('.tooltip-button').attr('data-placement', 'top'); $('[data-toggle="tooltip"]').tooltip({html: true}); });