You Can add class to the button’s in Dialog…by
$('#mydialog').dialog({
buttons:{
"send":{
text:'Send',
'class':'save'
},
"cancel":{
text:'Cancel',
'class':'cancel'
}
});
I think this will work for you. and you can find more answers here.