Is there any difference between drop down box and combo box?

前端 未结 5 1908
遇见更好的自我
遇见更好的自我 2020-12-09 01:44

Is there any difference between drop down box and combo box [ HTML ]?

Actually the point is, everytime i say something like: \"there is some problem with the c

5条回答
  •  天命终不由人
    2020-12-09 02:12

    If you are considering which one to implement, I found the ARIA doc explains the trade-offs well:

    When constructing a widget that is both visually compact and enables users to choose one value from a set of discrete values, often either a listbox or menu button is simpler to implement and use. One feature of combobox that distinguishes it from both listbox and menu button is that the value of the combobox is presented in an edit field. Thus, the combobox gives users one function that both listbox and menu button lack, namely the ability to select some or all of the value for copying to the clipboard. One feature that distinguishes both combobox and menu button widgets from listbox widgets is their ability to provide an undo mechanism.

    To sum it up:

    • Prefer menu or listbox over combo box because they are simpler to implement
    • The only thing that differentiates combo box from the other two is it can enable users to copy to clipboard and undo

提交回复
热议问题