jQuery UI Dialog combined with effects

A test of jQuery UI Dialog.

JavaScript

$("#modalBtn").click(function() {
	var $dialog = $('

Content.

');
$dialog.dialog({
modal:true,
buttons: {
Shake: function() {
$dialog.parent('div').effect('shake',{times:3},100);
}
}
});
return false;
});


blog comments powered by Disqus