HTML CSS Reference/HTML Attributes Reference/multiple

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

"multiple" Example

<head><Title>Example For multiple</Title></head>
<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>

multiple is applied to

| Applied_To     |<select>                                                      |

"multiple" Syntax and Note

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