搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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

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