I am using Bootstrap Tooltip. I have enabled the Tooltip html to allow me to use the html span in the title attribute.
I am having problem updating the value in the span dynamically.
See demo: https://jsfiddle.net/DTcHh/38497/
If you click on Update Tooltip button, the tooltip should change to: 10 x 20
What went wrong?
jQuery:
  $(function() {
    $('[data-toggle="tooltip"]').tooltip({
      html: true
    });
    $('body').on('click', '.update', function() {
       $('.a').text(10);
       $('.b').text(20);
    });
  });
html
<a href="#" data-toggle="tooltip" title="<span class='a'>2</span> x <span class='b'>5</span>">
  Hover Me
</a>
<button class="update">Update Tooltip</button>
 
     
    