Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 HTML  





2 See also  





3 References  














List box






Azərbaycanca
Català
Čeština
Deutsch
Español
Français
Hrvatski
Italiano
Македонски
Polski
Português
Русский
Українська
Tiếng Vit
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


A generic list box

Alist box is a graphical control element that allows the user to select one or more items from a list contained within a static, multiple line text box. The user clicks inside the box on an item to select it, sometimes in combination with the ⇧ ShiftorCtrl in order to make multiple selections. "Control-clicking" an item that has already been selected, unselects it.

A list box is called selectorselect1 in the XForms standard. Select is used for allowing the user to select many items from a list whereas select1 only allows the user to select a single item from a list.

HTML

[edit]

Inweb forms, the HTML elements <select multiple> and <option> are used to display a listbox: [1]

<select multiple>
  <option>List item 1</option>
  <option>List item 2</option>
  <option>List item 3</option>
  <option>List item 4</option>
  <option>List item 5</option>
  <option>List item 6</option>
</select>

See also

[edit]

References

[edit]
  1. ^ "HTML <select> multiple Attribute". W3Schools.
  • t
  • e

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=List_box&oldid=1224881234"

    Categories: 
    Graphical control elements
    Desktop environment stubs
    Hidden categories: 
    Articles with short description
    Short description is different from Wikidata
    Articles needing additional references from June 2019
    All articles needing additional references
    All stub articles
     



    This page was last edited on 21 May 2024, at 01:15 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki