Hi Brains Trust,
Is it possible to do a Multi Select Drop Down Menu.
It doesn't seem to be an option in WD Elements ?
I am sure it could be done with some clever script.
Multi Select Drop Down Menu - Post ID...
It seems to me from https://www.w3schools.com/TAGS/att_select_multiple.asp (click on the 'Try it Yourself' button) that multiple selection 'dropdowns' aren't dropdowns in the way one might expect, i.e. a single line which drops down in the same way as the Drop Down element. One might therefore choose to use Checkboxes instead.
It occurs to me that it might be possible by setting up a Drop Down list and converting it to a multiple selection 'dropdown' by adding to it the 'multiple' attribute as mentioned in the w3schools item above. I've done it (as attached) by putting a script in the HTML Element (the last item in the Magical elements) as follows.
The "item1_select_1" part was ascertained by clicking on Preview to open it in a browser, and keying Ctrl+u to see the code, and finding the id in the <select ... > line.
I haven't tested it, and wonder whether it might work in practice.
Frank
It occurs to me that it might be possible by setting up a Drop Down list and converting it to a multiple selection 'dropdown' by adding to it the 'multiple' attribute as mentioned in the w3schools item above. I've done it (as attached) by putting a script in the HTML Element (the last item in the Magical elements) as follows.
<script>document.getElementById("item1_select_1").setAttribute("multiple", "");</script>
The "item1_select_1" part was ascertained by clicking on Preview to open it in a browser, and keying Ctrl+u to see the code, and finding the id in the <select ... > line.
I haven't tested it, and wonder whether it might work in practice.
Frank
Thanks Frank, I will give that a go.
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.