Skip to content Skip to sidebar Skip to footer

How To Select Multiple Items From A Listbox Asp.net Without Pressing The Ctrl Key Using Javascript?

How to select multiple items from a listbox without pressing the CTRL key using javascript?

Solution 1:

$('option').mousedown(function (e) {
  e.preventDefault();
  $(this).prop('selected', $(this).prop('selected') ? false : true);
  return false;
 });

Post a Comment for "How To Select Multiple Items From A Listbox Asp.net Without Pressing The Ctrl Key Using Javascript?"