title: How to assign an Ajax success handler when loading jqmodal dialog?
body: <p>What I need is very simple but, searching the web, I didn't find any example.</p>
  
  <p>I am using the jqModal jQuery plugin for displaying content dynamically (via Ajax) in a modal dialog. Once, this modal content is loaded, I need to bind some event on the dialog DOM elements. Therefore, I would like to assign an handler to the "success" AJAX event for manipulating these DOM elements.</p>
  
  <p>The problem is that, looking into the jqModal documentation, there is no 'success' defined events. For instance, the code:</p>
  
  <pre><code>$('#ex2').jqm({ajax: 'examples/2.html', trigger: 'a.ex2trigger'});
  </code></pre>
  
  <p>will call the <code>examples/2.html</code> for the Ajax request and the response content will replace <code>ex2</code> content...</p>
  
  <p>...but how can I define my handler for success (or error) such that I can bind some events on the new content of '#ex2' ?</p>
  
  <p>Thank you in advance for your help,</p>
  
  <p>Fabien.</p>