title: jqueryui modal dialog effects
body: <p>How can i apply effects to the modal window which contain login form. I want to apply shake effect for the dialog when use submitted the wrong details. This code is failed</p>
  
  <pre><code>$("#dialog-form").effect("shake", { times:5 }, 100);
  </code></pre>
  
  <p>This is applying the effect to only form not for modal dialog. Is there any way to apply the effect?</p>