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
Bootstrap Modal
Suraj Sahoo
Jan 20
2015
Code
1.7
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<
h3
>
Modal Example
</
h3
>
<
a
href
=
"#myModal1"
role
=
"button"
class
=
"btn"
id
=
"launch"
>
Launch Login
</
a
>
<
div
id
=
"myModal1"
class
=
"modal hide"
tabindex
=
"-1"
role
=
"dialog"
>
<
div
class
=
"modal-header"
>
<
button
type
=
"button"
class
=
"close"
data-dismiss
=
"modal"
aria-hidden
=
"true"
>
×
</
button
>
<
h3
>
Login
</
h3
>
</
div
>
<
div
class
=
"modal-body"
>
<
label
>
User Name
</
label
>
<
input
placeholder
=
'Username'
/>
<
br
/>
<
label
>
Password
</
label
>
<
input
placeholder
=
'Password'
/>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
class
=
"btn"
data-dismiss
=
"modal"
aria-hidden
=
"true"
>
Cancel
</
button
>
<
button
class
=
"btn btn-primary"
>
Login
</
button
>
</
div
>
</
div
>
$(
"#launch"
).click(
function
(){
$(
"#myModal1"
).modal(
'show'
);
});
javascript bootstrap jquery