title: Show confirmation dialog in Fancybox when submitting form with jQuery
body: <p>I am trying  to control a form submit confirmation using a Fancybox confirmation message.</p>
  
  <p>How can I add an event to the form submit using jQuery fancybox?</p>
  
  <p>my form source is bellow:</p>
  
  <pre><code>&lt;form name="oactivite" action="url" method="POST" onsubmit="return confirmTask(' do you confirm task : '+document.forms['oactivite'].elements['task_id'].options[this.document.forms['oactivite'].elements['task_id'].selectedIndex].text+'?');"&gt;
      &lt;select name="task_id" id="task_id"&gt;
          &lt;option value="1"&gt;Pause&lt;/option&gt;
          &lt;option value="2"&gt;Digit&lt;/option&gt;
          &lt;option value="3"&gt;editing&lt;/option&gt;
      &lt;/select&gt;
      &lt;div name="emp_id" value="20" style="display:none" /&gt;
      &lt;input type="submit" value="validate task"/&gt;
    &lt;/form&gt;
  </code></pre>
  
  <p>how can i show a fancybox confirm message when i call confirmTask ?</p>