+ The Value of containment can be a Object
+
+ var jail = $( '' ).css( {
+ height: '500px',border: '0px', margin:'0px', width:'500px', position: 'absolute', bottom: '0px', right: '0px', left: '50px', top: '50px'
+ } ).appendTo( "body" ),
+ $("#div_dialog").dialog({
+ title: "hello"
+ , containment: jail
+ });
+
+
+ It is the same behavior like:
+
+ $("#div_dialog").dialog({
+ title: "hello"
+ }).dialog("widget").draggable("option", "containment", "#some_div");
+
+
+
+