I'm having trouble creating a modal window that opens when a button is clicked for user registration. The button is being clicked, but the modal window isn't appearing. Here's my code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<div class="button">
<button type="button" onclick="document.getElementById(mymodal).style.display='block';">Create</button>
<div id="mymodal" class="ourmodal">
<div class="modal-content">
</div>
</div>
</div>
<style>
.ourmodal{
display:none;
position:fixed;
overflow:auto;
z-index:1;
left:0;
top:0;
width:100%;
height:100%;
background-color:grey;
}
.modal-content{
background-color:honeydew;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
</style>