how can i shorten the following ?
how can i shorten the following
- $( "#dialog" ).dialog({ autoOpen: false });
- $( "#opener" ).click(function() {
- $( "#dialog" ).dialog( "open" );
- });
- $( "#dialog" ).dialog( "option", "width", 500 );
- $( "#dialog" ).dialog( "option", "height", 400 );
- $( "#dialog2" ).dialog({ autoOpen: false });
- $( "#opener2" ).click(function() {
- $( "#dialog2" ).dialog( "open" );
- });
- $( "#dialog2" ).dialog( "option", "width", 500 );
- $( "#dialog2" ).dialog( "option", "height", 400 );
- $( "#dialog3" ).dialog({ autoOpen: false });
- $( "#opener3" ).click(function() {
- $( "#dialog3" ).dialog( "open" );
- });
- $( "#dialog3" ).dialog( "option", "width", 500 );
- $( "#dialog3" ).dialog( "option", "height", 400 );