Wednesday, November 3, 2010

HTML MULTI SELECT - maintain multiple selection state without Control Key.

Problem Description:
Recently I had a problem with MULTISELECT. The default behavior of MULTISELECT is that when we need to select multiple items at a time, either we need to press control key and then by mouse click select multiple item or by mouse drag. My problem was to maintain the previously selected item without the help control key.

A simple jQuery code serves this purpose as follows

I have used ID selector. But we can use any kind of selector of our choice.

1 comment:

  1. I have no words for this great post such a awe-some information i got gathered. Thanks to Author.
    html5 video player| html5 player