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.

Solution:
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. This comment has been removed by a blog administrator.

    ReplyDelete