Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
frontend
html
examples
forms
16select_multiple.html
16select_multiple.html
<!DOCTYPE HTML> <html lang="hr"> <head> <meta charset="UTF-8"> <title>Select multiple</title> </head> <body> In the following example use CTRL and SHIFT to select multiple items. <br><br> <form action="" method="POST" enctype="application/x-www-form-urlencoded"> only multiple, without size attribute: <br> <select name="town" multiple> <option value="Našice">Našice</option> <option value="Budapest">Budapest</option> <option value="Osijek" selected>Osijek</option> <option value="Trakošćan">Trakošćan</option> </select> <br> <br> <br> size="1" multiple (don't works OK): <br> <select name="town" size="1" multiple> <option value="Našice">Našice</option> <option value="Budapest">Budapest</option> <option value="Osijek" selected>Osijek</option> <option value="Trakošćan">Trakošćan</option> </select> </form> </body> </html>
Reload page
Preview
W3C validation
Edit Code