Monday, 27 August 2018

Jquery Pop Up example for login and Registration form

04:36

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
 
  <style>
#login{
display:none;
}
#register{
display:none;

}
</style>

<script>
$(document).ready(function(){
    $("#click1").click(function(){
        $("#login").show();
  $("#register").hide();
    });
});

$(document).ready(function(){
    $("#click2").click(function(){
        $("#register").show();
  $("#login").hide();
    });
});
</script>
</head>
<body>

<div class="container">
  <h2>Modal Example</h2>
  <!-- Trigger the modal with a button -->
  <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Login</button>

  <!-- Modal -->
  <div class="modal fade" id="myModal" role="dialog">
    <div class="modal-dialog">
   
      <!-- Modal content-->
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title">Modal Header</h4>
        </div>
        <div class="modal-body">
          <p><button  id=click1> login</button>
<button  id=click2> Register</button>

<div id="login">

<form action=login.php  method=post>
Make Login
 email <input type=text name=email>
 password<input type=password  name=password>
 <input type=submit name=submit value=Login>
</form>



</div>

<div id="register">
Make Registration

<form action=register.php  method=post>
 email <input type=text name=email>
 password<input type=password  name=password>
 confirm password<input type=password  name=password>
 <input type=submit name=submit value=Login>
</form>

</div>
         
         
          </p>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
      </div>
     
    </div>
  </div>
 
</div>

</body>
</html>

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

15 comments:

  1. Thank you for sharing this helpful article we hope listen you more ahead and I want to share information about the php developement mitroztech

    ReplyDelete
  2. Thank you for sharing this information.It was easy to understand and helped me a lot.
    phptraininginchennai

    ReplyDelete

  3. Thanks For Sharing. It IS very helpful For Everyone ....
    If You Are Looking Best PHP training in chandigarh click here

    ReplyDelete
  4. PHP Training in Solan
    ... Very good web with a lot of information and very useful.

    ReplyDelete
  5. Shahni Digital Media provides complete digital marketing solutions to your business. e.g. ppc, social media marketing, web designing & development. Hire us to grow up your business high.

    Digital Marketing Company Bhopal
    Website Designing Company Bhopal
    SEO Company in Bhopal
    ORM Company India

    ReplyDelete
  6. As you grow, you will realize that arguing right and wrong more(so sánh gạch nung và gạch không nung) than losing to others is ( tìm hiểu tam san be tong sieu nhe) sometimes not important anymore. Most importantly, just want peace.

    ReplyDelete
  7. The information you shared was useful. Thank you for taking the time to organize it. blockchain development company has altered pretty radically over the last couple of years. What happening as a means to power up an efficient payment network has transformed into a reorganized processer where developers from all everywhere the world can come and create their own software applications. ADe Technologies offers blockchain development service in an efficient way. Please feel free to call us on +1 800-912-1219 or contact by email (contact@ade-technologies.com), if you require any additional information. Please visit our website www.ade-technologies.com

    ReplyDelete

PHP Training Mumbai, PHP MySQL Training Mumbai, PHP Course Mumbai, PHP Institute Mumbai

 

© 2013 PHP TRAINING IN MUMBAI BY OM SIR . All rights resevered. Designed by OM SIR

Back To Top