jQuery PopWindow with content and buttons

jQuery PopWindow with content and buttons

script :
  1. <script type="text/javascript">
  2. function dynamic_popup()    { 
  3.      var dynamicitem = document.getElementById("dynamicitem").value;
  4.      $.ajax({ 
  5.      type: "GET", 
  6.      url: "./attributeXXXMaintain.dd?action=checkValidItems&dynamicitem="+dynamicitem, 
  7.      data: "dynamicitem=" + dynamicitem, 
  8.      dataType: "text/html",
  9.      error: function(){
  10.             alert('Error validating ITEMS');
  11.         },
  12.      success: function(xml){
  13.           
  14.       //TO DO
  15.      I need to open the pop window here with response.
  16.             //    $("#txtResult").html(xml); 
  17.                    } 
  18.       
  19.        });
  20.   }
  21. </script>

html :
     
On button click i am calling  above script.


What I need here is i want to display All the data in model popup window as i mentioned in above script.
Pop up should contain some buttons which i can use for some other purpose.

Please provide me the code.I have tried in may sites and came to know that jQuery has many options.
Please let me know.Thanks in advance.