jquery ui button with glyphicon - is it possible?

jquery ui button with glyphicon - is it possible?

Hi,
Is there anyway of applying a bootstrap glyphicon to a jquery ui button?
My current code for adding a button to our viewer toolbar is:
  1. function AddEmailButton() {
     
        var emailButton = $('<input type="button" title="Email Documents" id="emailButton"></input>');
     
        emailButton.addClass('atala-ui-button');
     
        // click action for what to do with the button
        emailButton.click(CleanupImage);
     
        return emailButton;
    }
I've tried adding this into the function:
  1. emailButton.html('<span class="glyphicon glyphicon-envelope"></span>');
but it is not working.

Any help would be great.
Thanks
Graham