Issues adding a class to jquery ui dialog

后端 未结 1 1997
故里飘歌
故里飘歌 2021-01-11 10:46

I\'m trying to add an additional class to my jQuery dialog with the dialogClass property. Here\'s the javascript:

$(function(){
    $( \"#toogle         


        
相关标签:
1条回答
  • 2021-01-11 11:38

    Your noPadding class is being added successfully to the dialog. I have confirmed this by placing your markup and scripts within a fiddle, and loading jQuery UI 1.8.16 (the version you were testing with). This test is available online at http://jsfiddle.net/QHJKm/3/.

    I suspect the confusion here is with the expected effect noPadding is going to have on the dialog itself. It could be that you interpreted its lack of effect as an indication it wasn't added to begin with. As you'll note in my example, I've got with a rather bold style, a red background. This quickly confirms that the class is indeed being added to the dialog.

    0 讨论(0)
提交回复
热议问题