I currently have this code on my page:

$( ":button").button({
                icons: {
                    primary: "ui-icon-circle-plus"
                }
            });

That makes all of the buttons have plus signs.

Is there a way to only make certain buttons have plus signs, but have the rest of the buttons not have plus signs?

有帮助吗?

解决方案

Assign the buttons to a class and use

$('.class:button')

instead of

$(':button')
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top