DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Dialog

12.21.2009
| 3114 views |
  • submit to reddit
        // code to open jquery  ui dialog onload the page and with an optional click

$(document).ready(function(){
                        $("#contentdialog").dialog({ modal: true, width: 460, title: 'Novo Evento!' });
						$("#abrepopup").click(function () { 
					     $('#contentdialog').dialog('open');
						 
					   	 });
              });