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 -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -