Question

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?

Was it helpful?

Solution

Assign the buttons to a class and use

$('.class:button')

instead of

$(':button')
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top