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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -