0

嗨,我正在尝试将事件处理程序插入到 jqplot 图例中的每一行,例如

$('#chart3').bind('jqplotDataClick', function (ev, seriesIndex, pointIndex, data) { alert(1);});); 但是对于图例行

4

1 回答 1

3

这对我有用:

$('#chart-id tr.jqplot-table-legend').bind('click', function() {
    alert($(this).children().last().text());
});

所以这将做的是alert系列的名称。

于 2013-03-26T20:11:46.027 回答