I am trying to specifically style the buttons within one jQuery dialog out of multiple dialogs on my page.
Typically, I would target all dialog buttons using:
.ui-dialog .ui-dialog-buttonpane
and
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset
However, in this scenario, I only want to center the buttons for this particular dialog.
The dialog is generated from a hidden div:
<div id="one" style="display:none;">
Content of the dialog
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#one").dialog({
buttons: {"save":function(){alert("saved");}}
});
});
</script>
Is there a way to target just this individual dialog with CSS?
Thank you!