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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -