Apply CSS to jQuery Dialog Buttons

前端 未结 10 2159
攒了一身酷
攒了一身酷 2020-12-01 01:02

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,
             


        
10条回答
  •  甜味超标
    2020-12-01 01:45

    Maybe something like this?

    $('.ui-state-default:first').addClass('classForCancelButton');
    

提交回复
热议问题