<!DOCTYPE html>
<html>

  <head>
    <link rel="stylesheet" href="style.css">
    
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">

<!-- Optional theme -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">

<!-- Latest compiled and minified JavaScript -->

  </head>

  <body>
    <div id="showmodal">show modal</div>
   
  <div id="showmodal2">show modal 2</div> 
  
  <!-- Modal -->
  <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
          <h4 class="modal-title" id="myModalLabel">Modal title</h4>
        </div>
        <div class="modal-body">
          ...
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <button type="button" class="btn btn-primary">Save changes</button>
        </div>
      </div>
    </div>
  </div>


    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
    <script src="//twitter.github.com/bootstrap/assets/js/bootstrap-modal.js"></script>
    <script src="script.js"></script>
    
  </body>

</html>
// Code goes here

$(document).ready(function set(){
  

  
  $("#showmodal").on('click',function(){

    $("#myModal").modal()
    $("#myModal").modal('toggle')

    
  })
  
  $("#showmodal2").on('click',function(){$("#myModal").modal('toggle')})
  $("#showmodal2").on('click',function(){$("#myModal").modal('toggle')})

  


})
/* Styles go here */