Hello! I am trying to make a dialog usin jQuery ui, this dialog shoul display data of a person. I want to display them using a table. But i dont know how to do it. It is the first time i am creating a dialog box. I really need some help
Code:
   \$(document).ready(function(){
           
      \$('.btn').click(function(){

   
         \$("#dialog").dialog();
         
         return false;
      });
--div---
Code:
print $q->div({-id =>'dialog', -title => 'Profile', -style => 'display:none'},
  
        print $q->start_table({-id => 'id_tab'},
         $q->Tr([ $q->td ({-rowspan => '3'}),
                  $q->td({"Name:"}),  
                  $q->td({" "}) 
         ]),
         
         $q->Tr([ $q->td ({-rowspan => '3'}),
                  $q->td({"Surname:"}),
                  $q->td({" "})   
         ])               
    )         
 );