HTML CSS Reference/HTML Attributes Reference/multiple

Материал из Web эксперт
Перейти к: навигация, поиск

"multiple" Example

    
<HTML>
<head><Title>Example For multiple</Title></head>
<BODY>
<body onUnload="document.forms[0].reset()">
  <form name="form1" method="post" action="">
     <select name="Chapters" multiple>
        <option>Chapter 1</option>
        <option>Chapter 2</option>
        <option>Chapter 3</option>
        <option>Chapter 4</option>
        <option>Chapter 5</option>
        <option>Chapter 6</option>
     </select>
  </form>
</body>
</BODY>
</HTML>



multiple is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<select>                                                      |
+----------------+--------------------------------------------------------------+



"multiple" Syntax and Note

Note:
    
This attribute sets whether <option> elements can be multiple selected. 
Pressing the SHIFT key or CONTROL key to do the multiple selection.
    
Syntax:
    
<select multiple> . . . </select>