There are questions about how to make one default choice, like this one . But I have multiple choices and you want all options to be selected initially. I found questions for something similar (like this ), but not exactly what I want.
Is this possible without JavaScript?
http://jsfiddle.net/UgHT5/ - is this your need?
<select multiple> <option selected>a</option> <option selected>b</option> <option selected>c</option> </select>
This is much simpler than I expected:
<select multiple name="type"> <option selected value="1">type 1</option> <option selected value="2">type 2</option> <option selected value="3">type 3</option> </select>
Finding this link was enough.
Source: https://habr.com/ru/post/958859/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/958854/knockout-pass-additional-parameters-to-subscription-function&usg=ALkJrhjHOzMs2TGmNc0U-yNpu7Wprz0M_QXmlPullParser getAttributeValue returns null - androidHow to enable php_mssql.dll extension in xampp 1.8.x - phpjava threadump value "waiting on condition" - javaMapReduce work without a cartographer - javaHow to smooth Try [Option [T]] - scalaReconciling and replacing patterns in R - regexAVAssetExportSession rotation error when video is in camera roll - iosProblems with video orientation when exporting using AVMutableVideoComposition - iosASP.Net MVC 4 Custom ValidationAttribute Dependency Injection - c #All Articles