title: Pop up on ajax success
body: <p>I have this modal pop up when a link is clicked. It has a text area and 2 buttons: Send and cancel</p>
  
  <pre><code>   &lt;a href="#message" style="text-decoration:none" class="common2 simple3" &gt;Message&lt;/a&gt;
          &lt;div id="message" class="modalDialog"&gt;
                  &lt;div&gt;
                      &lt;!---&lt;a href="#close" title="Close" class="close"&gt;X&lt;/a&gt;---&gt;
                      &lt;h3&gt;Create A Message&lt;/h3&gt;
  
  
                      &lt;textarea  id = 'msgContent' cols="48" rows="10" &gt;&lt;/textarea&gt;
                      &lt;br&gt;
                      &lt;div id="create_btn"&gt;
                          &lt;a href="#" id = 'send' class="common simple2" style='margin-left:50px;text-decoration: none;'&gt;Send&lt;/a&gt;
                      &lt;/div&gt;
                      &lt;div id="cancel_btn"&gt;
                          &lt;a href="#close" class="common simple2" style='margin-left:40px;text-decoration: none;'&gt;cancel&lt;/a&gt;
                      &lt;/div&gt;
                      &lt;br&gt;
                      &lt;br&gt;
                  &lt;/div&gt;
          &lt;/div&gt;
          &lt;div id="success" class="modalDialog"&gt;
                  &lt;div&gt;
                      &lt;h3&gt;Message sent&lt;/h3&gt;
                      &lt;div id="cancel_btn"&gt;
                          &lt;a href="#close" class="common simple2" style='margin-left:40px;text-decoration: none;'&gt;OK&lt;/a&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>and i have this code in ajax success when the send button is clicked</p>
  
  <pre><code>  success: function(result)
                          {                                           
  
                              if (result == true)
                              $( "#success" ).dialog( "" );
  
                          } 
  </code></pre>
  
  <p>I am working on showing another pop up when the ajax is successful. But I have no idea how to call    </p>
  
  <pre><code>  &lt;div id="success" class="modalDialog"&gt;     
  </code></pre>