jquery - making the axis labels in jqplot clickable -


how can make axis labels (of category x axis) clickable.

if less problematic, ok click lead new link (and not javascript code)

is there way can this?

thanks, boaz.

here simple script:

$(".jqplot-xaxis-label")     .css({         cursor: "pointer",         zindex: "1"     })     .click(function(){ location.href = "http://google.com"; }); 

the important thing happening above zindex being set 1 sits above canvas object. can click it. cursor style makes have friendly rollover mouse icon. now, can whatever want inside click event.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -