views:

719

answers:

2

Hi,

I am using jQuery UI Selectable plugin. I want to select one item at a time. But jQuery UI Selectable plugin allows multiple selection by clicking/ dragging / holding CTRL key. Is there any way to prevent multiple selection?

+5  A: 

There is no defined way. However, you could pass in a callback function for "Start" or "Selected" events, that cancels the selection if more than one element is selected.

Dmitri Farkov
thanks for your response. I will try to follow your way
miti737
Hi, How can I prevent selecting item when it holds CTRL key ?
miti737
+1  A: 

An interesting discussion about this you can find on this jQuery forum thread.

cetnar