I want to add "mousedown"
event to the plot holder in JQuery/Flot code, i tried two ways, but neither works, i appreciate anybody give me any hints!
1)
placeholder.bind("mousedown",function(e){
alert("1");
})
2)
function onMouseDown(e) {
alert("1");
}
plot.hooks.bindEvents.push(function (plot, eventHolder) {
eventHolder.mousedown(onMouseDown);
});