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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Shal
1.5k
245
3.7k
error in checkbox in dropdownlist asp.net c# dynamically
Mar 26 2021 5:43 AM
I wanted multiselect dropdown list but am getting following error.
below is my code.kindly help me thank you.
<script type=
"text/javascript"
src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"
></script>
<link href=
"http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<script type=
"text/javascript"
src=
"http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js"
></script>
<link href=
"http://cdn.rawgit.com/davidstutz/bootstrap-multiselect/master/dist/css/bootstrap-multiselect.css"
rel=
"stylesheet"
type=
"text/css"
/>
<script src=
"http://cdn.rawgit.com/davidstutz/bootstrap-multiselect/master/dist/js/bootstrap-multiselect.js"
type=
"text/javascript"
></script>
<script type=
"text/javascript"
>
$(
function
() {
$(
'[id*=lstEmployee]'
).multiselect({
includeSelectAllOption:
true
});
});
</script>
Employee : <asp:ListBox ID=
"lstEmployee"
runat=
"server"
SelectionMode=
"Multiple"
>
<asp:ListItem Text=
"Nikunj Satasiya"
Value=
"1"
/>
<asp:ListItem Text=
"Dev Karathiya"
Value=
"2"
/>
<asp:ListItem Text=
"Hiren Dobariya"
Value=
"3"
/>
<asp:ListItem Text=
"Vivek Ghadiya"
Value=
"4"
/>
<asp:ListItem Text=
"Pratik Pansuriya"
Value=
"5"
/>
</asp:ListBox>
<asp:Button Text=
"Submit"
runat=
"server"
OnClick=
"Submit"
/>
Reply
Answers (
3
)
Jquery/Javascript Not working in partial view
Scan Qr Code Through Mobile camera