Skip to content

Instantly share code, notes, and snippets.

@pointofpresence
Last active March 31, 2024 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pointofpresence/db7bbd84243cccd2c919c78ba206890c to your computer and use it in GitHub Desktop.
Save pointofpresence/db7bbd84243cccd2c919c78ba206890c to your computer and use it in GitHub Desktop.
HTML: Тег select с мультивыбором
// В атрибут value можно передать массив, что позволит выбрать несколько опций в теге select:
<select multiple={true} value={['Б', 'В']}
// Boolean attribute 'multiple' indicates that multiple options can be selected in the list.
// If it is not specified, then only one option can be selected at a time. When `multiple` is
// specified, most browsers will show a scrolling list box instead of a single line dropdown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment