سؤال

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