mysociety / jquery-multi-select

Converts <select multiple> elements into dropdown menus with checkboxes
https://www.mysociety.org/
Other
24 stars 18 forks source link

Option to enable a modal background element #15

Closed zarino closed 5 years ago

zarino commented 5 years ago

If HTML markup is provided via the modalHTML option, the resulting element will be inserted before the menu, and clicks on the element will close the menu.

demo/index.html includes an example of how this can be used.

image

zarino commented 5 years ago

@dracos Readme updated 👍 and the <div…> strings that we pass in as options don’t need closing tags or slashes, no – jQuery is clever enough to only need the opening tag.