title: Using a font-awesome icon in jquery ui dialog
body: <pre><code>$('.toggle').click(function () {
      $('.d').dialog();
      $('.ui-dialog-titlebar-close').addClass('icon-remove');
  });
  </code></pre>
  
  <p>Using above code I have to write <code>$('.ui-dialog-titlebar-close').addClass('icon-remove');</code>
  for every dialog. I could also use onload event for adding a class to dynamically created elements. But is there any better solution? Any solution that only use css or scss? </p>