jquery - How to make action to a button inside tooltip in Highcharts? -


I have added a button inside the tooltip in HighThat and I have to take some action after the click event.

  config = {tooltip: {useHTML: true, formatter: function () {return "& lt; a href = \" # \ "id = \" button \ "& gt; asd & Lt; / a & gt; "; Unfortunately, jQuery does not seem to work well here  
  $ (document) .on ('click', '#button', function () {e.preventDefault () ; Console.log ("ok");});  

Click OK if nothing is wrong? I think the problem is SVG, right?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -