jQuery Ui Dialog Buttons, How to add class?

前端 未结 5 1469
花落未央
花落未央 2020-12-29 00:53

I found this answer on another thread..

How to add multiple buttons in Jquery UI dialog box?

Using this syntax, how do you add class to a particular button?<

5条回答
  •  死守一世寂寞
    2020-12-29 01:41

    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.

提交回复
热议问题