Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 759 Bytes

readme.md

File metadata and controls

31 lines (29 loc) · 759 Bytes

jQuery Simple Modal

Very simple responsive jQuery modal plugin

Example

Getting Started

1. Include styles & scripts

<head>
	<link href="jquery.simple-modal.min.css" rel="stylesheet">
	<script src="jquery.min.js"></script>
	<script src="jquery.simple-modal.min.js"></script>
</head>

2. Initialize plugin

$(document).ready(function() {
	$().simpleModal({
		name: 'example',
		title: 'Example',
		content: '<button class="my-button">Lorem ipsum</button>',
		size: 'small', // or integer for custom width
		freeze: true,
		callback: function() {
			$('.simple-modal--example .my-button').click(function() {
				console.log('Click from modal');
			});
		}
	});
});