How to set "all values" as default in a multiple select?

Pavel V.

There are questions on how to make one selection default, like this one. But I have a multiple select and want all the options to be selected initially. I found questions for something similar (like this), but not exactly what I want.

Is this possible without JavaScript?

qiu-deqing

http://jsfiddle.net/UgHT5/ is this your need?

<select multiple>
    <option selected>a</option>
    <option selected>b</option>
    <option selected>c</option>
</select>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Meteor (blaze) how to find all values from a select multiple

How to get all values from a multiple select field in laravel controller

How to set multiple default values for multiple select in flask-bootstrap

How to set collection_select with default multiple selected?

How to set multiple default values for multiselect select tag in Angular

How to set a default value to ng-options (multiple select)

How to set default selected value of multiple options(ion-select)

laravel, how to select with all values

Default all values in a new slice to a set default value GoLang

How to select all values that a not a number using SQL?

How to select value that matches all values in a list?

how to select all values of elements with a .innnerHTML property

How to set all values in listview android

How to set all values of an object to null in JavaScript?

How extract all values for one set of key

How to get all values from multiple options

How can I set multiple default values in an HTML select control using the values in a PHP array?

Select set of all values stored in a VARCHAR based CSV field

AngularJS - how to set default select option

How to write prompt to set default select option

How to set default value for select in angularjs

How to set default value for HTML select?

How to set a default value in react-select

How to set default value in md-select

How to set the first option of the select as default value

How to set my default option select?

How to set default option in select with Angular?

how to set default value for select statement

How to set a default value in <v-select>?

TOP Ranking

HotTag

Archive