javascript - Adding filter to select multiple rows using Ctrl key in Firefox but in Chrome it's working fine -
when try select multiple rows using ctrl key border of selected td
blue.
i using code check whether ctrl key pressed or not:
$("#unselectedtab td").click(function (event) { if (event.ctrlkey) { $(this).toggleclass("backgroundcolor"); } else { $("#unselectedtab td").removeclass("backgroundcolor"); $(this).addclass("backgroundcolor"); } });
migth be: event.browserevent.ctrlkey
you should put breakpoint in firebug , see properties event has.
Comments
Post a Comment