Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

I'd like <select size="1" multiple> to provide this: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkb

  • 4 отговора
  • 2 имат този проблем
  • 1 изглед
  • Последен отговор от mircea.lutic

more options

I'd like <select size="1" multiple> to provide a dropdown with checkboxes like this: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx

Can that be done?

Thanks

I'd like <select size="1" multiple> to provide a dropdown with checkboxes like this: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx Can that be done? Thanks

Всички отговори (4)

more options

Unfortunately, as far as I know, a plain old <select> control cannot have form controls in its options. I think you will need to use JavaScript. On that page, clicking the "button" (it's simulated, actually) displays an unordered list. List items have the flexibility to include checkboxes.

more options

It's not about form controls in the <select> it's about what the <select size="1" multiple> looks like. <Select> *is* a form control.

The problem is that when I want a compact control with multiple selection the standard alternative looks bad and is difficult to understand for the user.

The address I mentionned shows the way <select size="1" multiple> should look and work.

I guess the Mozilla development community is the community that can make it so.

Thank you

more options

You can file a request for enhancement in the bug tracking system: https://bugzilla.mozilla.org/. But if you know anyone enthusiastic about writing the code, that probably is even more important.

more options

Thank you for your suggestion. I did a post on bugzilla.

Thanks