Created
August 19, 2012 04:47
-
-
Save elclanrs/3392154 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function newDialog(id) { | |
var $div = $('<div id="#'+ id +'"/>').dialog({ | |
open: function() { | |
$(this).append( | |
'<textarea class="content-area">Content</textarea>'+ | |
'<textarea class="input-area">Input</textarea>' | |
) | |
}, | |
title: id | |
}); | |
$('body').append($div); | |
} | |
$(document).ready(function() { | |
newDialog('mydialog'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment