TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to Create Dropdown List with CheckBox in Bootstrap Multiple Select Option
Nidhin Vs
Jul 09
2015
Code
4.5
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<
select
multiple
=
"multiple"
style
=
"width:250px"
id
=
"ddlEmployee"
name
=
"Employees"
>
@{
foreach (var item in ViewBag.Employees)
{
<
option
value
=
"@(item.Id)"
>
@(item.Name)
</
option
>
}
}
</
select
>
<
script
type
=
"text/javascript"
>
$('#ddlEmployee').multipleSelect({
placeholder: "Pick the employees",
width: 360,
multipleWidth: 100
});
</
script
>
Note:
Required js and css
<
script
src
=
"~/jquery.multiple.select.js"
>
</
script
>
<
link
href
=
"~/multiple-select.css"
rel
=
"stylesheet"
/>
dropdown list
checkbox
bootstrap