I have an element <div class='graph'>
and I try to associate an onClick
event with it. There are some dynamic loading process on top of this element, but I am not sure what the event handler does the process load exactly.
For example, after open the web page, I use highchart to plot a chart on <div class='graph'>
and then I tried to add an event handler $('.graph').on('click',function(){//to show some text when click the <div>}
, but unfortunately, this does not work (the function never execute when I click over the element). The only think I could image is that the highchart added some 'click' event over '.graph'
. So when I add another 'click' event, it will not work as expected.
My question is:
how could I know what's the first 'click' event (by
console.log($('.graph').click())
seems not giving me any useful info)?how should I make my second click successful?