So I currently have a jQuery dialog with two buttons: Save and Close. I create the dialog using the code below:
$dialogDiv.dialog({ autoOpen: false,
Maybe something like this?
$('.ui-state-default:first').addClass('classForCancelButton');