Question Detail

<!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.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<button data-toggle="modal" data-target=".class1" class="btn" type="button"> Submit</button>
<div class="modal fade class1" id="" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
  <div class="modal-dialog">
    <div class="loginmodal-container">
      <div class="relative-pos text-center">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h1>Head</h1>
      </div>
      <form>
        <div class="form-group">
          <label for="form-subject" class="sr-only">Return Period</label>
          <input type="text" class="form-control" id="" name="" placeholder="Return Period" required="">
        </div>
        <button data-toggle="modal" data-target=".class2" data-dismiss="modal" type="submit" class="login loginmodal-submit"> Yes</button>
      </form>
    </div>
  </div>
</div>
<div class="modal fade class2" id="" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
  <div class="modal-dialog">
    <div class="loginmodal-container">
      <div class="relative-pos text-center">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h1>Head 2</h1>
      </div>
      <div class="text-center"> <a class="btn btn-link active"> Pay Now</a><br>
        <br>
        <a class="btn btn-link active" data-dismiss="modal">× Remind Me Later</a> </div>
    </div>
  </div>
</div>
</body>
</html>


Thread Reply

Anonymous

- 1 years ago

Hello Dear,
this code is working fine. Where are you facing problem?
Please check it again.