Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How can i make a popup form from clicking on a button

Posted on 2016-11-15
Medium Priority
Last Modified: 2016-11-15
I have this button:
<a href="#" class="btn btn-xlarge btn-info"><span class="glyphicon glyphicon-log-in"></span> Log-in</a>

Open in new window

<div class="container">
	<div class="row main">
		<div class="panel-heading">
	       <div class="panel-title text-center">
	           <img src="logo-small.png" alt="MarkitLive">
	               <hr />
	<div class="main-login main-center">
		<form class="form-horizontal" method="post" action="#">
			<div class="form-group">
				<label for="username" class="cols-sm-2 control-label">Username</label>
					<div class="cols-sm-10">
					<div class="input-group">
						<span class="input-group-addon"><i class="fa fa-user fa" aria-hidden="true"></i></span>
						<input type="text" class="form-control" name="username" id="username"  placeholder="Enter your Username"/>

		<div class="form-group">
			<label for="password" class="cols-sm-2 control-label">Password</label>
			<div class="cols-sm-10">
			<div class="input-group">
					<span class="input-group-addon"><i class="fa fa-lock fa-lg" aria-hidden="true"></i></span>
					<input type="password" class="form-control" name="password" id="password"  placeholder="Enter your Password"/>
		<div class="form-group ">
		<button type="button" class="btn btn-primary btn-lg btn-block login-button">Sign in</button>
		<div class="login-register">
			<a href="">A site owner? Log-in  through here! </a>

Open in new window

This form, How can I make it popup when I click on the login button?
Question by:Jasmine Ikhreishi
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 33

Expert Comment

by:Big Monty
ID: 41888054
since you're already using bootstrap by the looks of it, I recommend using bootbox.js. It's a modal dialog box (aka popup box) that works with bootstrap. It's highly customizable, good documentation, and IMO, really easy to use.

in your specific case, you would just put your form HTML that you already have in a hidden container, then, when the user clicks a button, use that html as the contents for your bootbox html.
LVL 82

Accepted Solution

leakim971 earned 2000 total points
ID: 41888069
just use the modals as described here :
test page :

Author Comment

by:Jasmine Ikhreishi
ID: 41888082
I copied the test page but nothing popped up when I clicked login, do i need to add any links?

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question