[Fixed]-Changing data-tooltip with AJAX isn't working

1👍

You can use the tooltip function for that:

success: function (data) {
    document.getElementById("stash_recipe_btn").innerHTML = data.stash_plus_or_minus;
    $("#stash_recipe_tooltip").tooltip('tooltip', data.stash_tooltip);  
}
👤Dekel

0👍

Try this:

$('#someElement').prop('tooltipText', 'new title');

Leave a comment