<html>
<head>
<title></title>
<link rel="stylesheet" href="/uikit/css/uikit.min.css" />
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="/uikit/js/uikit.min.js"></script>
<script>
jQuery(document).ready(function($){
$('#my-id').on({
'show.uk.modal': function(){
console.log("Modal is visible.");
}
});
})
</script>
</head>
<body>
<a href="#my-id" data-uk-modal>click</a>
<!-- This is the modal -->
<div id="my-id" class="uk-modal">
<div class="uk-modal-dialog">
<a class="uk-modal-close uk-close"></a>
something
</div>
</div>
</body>
</html>
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »