title: jquery ui loop with dialogs
body: <p>I am changing my code from fancybox to jquery ui, but i have some errors in this code:</p>
  
  <pre><code>&lt;a class = "perfil_1"&gt;&lt;h3&gt;Luciana &lt;/h3&gt;&lt;/a&gt;
  &lt;a class = "perfil_2"&gt;&lt;h3&gt;John&lt;/h3&gt;&lt;/a&gt;
  &lt;a class = "perfil_3"&gt;&lt;h3&gt;Pedro &lt;/h3&gt;&lt;/a&gt;
  
  &lt;div id="dialog_1"&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;div id="dialog_2"&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;div id="dialog_3"&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet&lt;/p&gt;
  &lt;/div&gt;
  
  
    for (i = 1; i &lt; 4; i++) {
              $('.perfil_'+i).click(function(){
                  $('#dialog_'+i).dialog('open');
                  return false;
              });
           };
  </code></pre>
  
  <p>Any help?, thanks.</p>