title: jQuery UI Alert Dialog as a replacement for alert()
body: <p>I'm using <code>alert()</code> to output my validation errors back to the user as my design does not make provision for anything else, but I would rather use jQuery UI dialog as the alert dialog box for my message. </p>
  
  <p>Since errors are not contained in a (html) div, I am not sure how to go about doing this. Normally you would assign the <code>dialog()</code> to a div say <code>$("#divName").dialog()</code> but I more need a js function something like <code>alert_dialog("Custom message here")</code> or something similiar.</p>
  
  <p>Any ideas?</p>