materialize
materialize copied to clipboard
Modal from sample v1.0.0-alpha.3 not working
I created a sample .html page w/ the following code from the documentation (http://next.materializecss.com/modals.html). However, when the Modal button is clicked the modal window is not displayed. Both the .css and .js files are being loaded.
The Modal page in the documentation does work.
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="./dist/materialize/css/materialize.css" media="screen,projection" />
<script type="text/javascript" src="./dist/materialize/js/materialize.js"></script>
</head>
<body>
<a class="waves-effect waves-light btn modal-trigger" href="#modal1">Modal</a>
<!-- Modal Structure -->
<div id="modal1" class="modal">
<div class="modal-content">
<h4>Modal Header</h4>
<p>A bunch of text</p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Agree</a>
</div>
</div>
</body>
</html>
Figured out it needs