Skip to content

Instantly share code, notes, and snippets.

@nikku
Created September 5, 2011 20:55
Show Gist options
  • Save nikku/1195893 to your computer and use it in GitHub Desktop.
Save nikku/1195893 to your computer and use it in GitHub Desktop.
<p class="custom-dialog-content">
foo
</p>
<p class="custom-dialog-content">
and
</p>
<p class="custom-dialog-content">
bar
</p>
<p class="custom-dialog-content">
makes
</p>
<p class="custom-dialog-content">
foobar
</p>
<script type="text/javascript">
$(function() {
$(".custom-dialog-content").dialog2({
title: "Alert",
id: "alert2",
autoOpen: false,
buttons: {
Close: {
primary: true,
click: function() {
$(this).dialog2("close");
}
}
},
removeOnClose: false
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment