2

Is there a way to create a list of checkboxes as elements for a drop down list? I'm not sure how to accomplish this (or if it's even possible), as well as set the checkbox as checked if the value is true in the database.

Thanks.

4 Answers 4

2

here are a couple of jquery based solutions you might find useful:

http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/

http://lab.arc90.com/2007/11/28/jquery-multiselect/

Sign up to request clarification or add additional context in comments.

Comments

2

You cannot do this with native browser widgets - you will have to create a custom solution that looks like a <select> element containing the checkboxes.

Comments

0

If you're looking for a commercial product. DevExpress has just such a control

http://mvc.devexpress.com/Editors/DropDownEdit

Comments

0

Whenever you see something that looks like a Drop Down List, but doesn't behave like one, it's a clever css solution.

Basically it's a hidden div:

<img src="image_that_looks_like_a_drop_down_list.jpg" onclick="showDiv('fakeDDL');" />
<div id="fakeDDL" style="display:none;">

     //lots of checkboxes

</div>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.