Skip to content

Instantly share code, notes, and snippets.

@andreaseriksson
Last active December 17, 2015 11:39
Show Gist options
  • Save andreaseriksson/5604168 to your computer and use it in GitHub Desktop.
Save andreaseriksson/5604168 to your computer and use it in GitHub Desktop.
JQUERY UI Dialog
<script>
$(function() {
$( "#dialog-modal" ).dialog({
height: 140,
modal: true,
autoOpen: false,
draggable: false,
resizable: false,
position: { my: "left top", at: "left bottom", of: button }
});
$( "#dialog-modal" ).dialog('open');
});
</script>
<div id="dialog-modal" title="Basic modal dialog">
<p>Adding the modal overlay screen makes the dialog
look more prominent because it dims out the page content.</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment