tags:

views:

596

answers:

1

Hi

i have a jquery table with lots of row and i did the row selection work also. but i dont want the cell value to be selected if i drag select the row. how do i work with selecting the able row and not the values by drag select.

PraDheep

+2  A: 

For most browsers, you should add a class to the table (e.g. 'selecting') and have the following CSS declaration:

.selecting {
   -moz-user-select: -moz-none;
   -webkit-user-select: none;
   user-select: none;
}

For IE, however, you should subscribe to the selectstart and dragstart events and cancel them through javascript.

Alexander Gyoshev
Thanks, so can we give this for the whole table. or the div that i use
it should be applied to the area that you don't want to be selected
Alexander Gyoshev
thats of great help and let me implement and let you know