I want to select multiple items in ListBox, but the browser requires the user to press CTRL to select multiple items otherwise it selects just one item.
I want to select multiple items without pressing CTRL, and I don't want to use CheckBoxList. Is there any better way of doing it? Using pure javascript, or JQuery or Codebehind.
(I already added SelectionMode="Multiple" attributes to ListBox controls)
Code:
<asp:ListBox ID="ListBox1" runat="server" Height="210px" Width="203px" SelectionMode="Multiple">
<asp:ListItem>1000</asp:ListItem>
<asp:ListItem>2000</asp:ListItem>
<asp:ListItem>4000</asp:ListItem>
<asp:ListItem>4000</asp:ListItem>
<asp:ListItem>5000</asp:ListItem>
<asp:ListItem>6000</asp:ListItem>
</asp:ListBox>