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
Prevent Bootstrap Modal Disappearing when Clicking out Side the Screen
Nidhin Vs
Jul 09
2015
Code
1.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<
div
id
=
"empModal"
class
=
"modal fade"
>
<
div
class
=
"modal-dialog"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header bg-maroon-gradient"
>
<
button
type
=
"button"
class
=
"close"
data-dismiss
=
"modal"
aria-hidden
=
"true"
>
×
</
button
>
<
h4
class
=
"modal-title"
>
Employees
</
h4
>
</
div
>
<
div
class
=
"modal-body"
>
//body
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-danger btn-sm btn-flat"
data-dismiss
=
"modal"
>
Close
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
<
script
type
=
"text/javascript"
>
$(function () {
$("#empModal").modal({
backdrop: 'static',
keyboard: false
});
$("#empModal").modal('show');
});
</
script
>
Bootstrap
Modal Disappearing