Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Set color of selected 'Select2' items and background?

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
Paul
Posts: 162
Joined: Mon Aug 25, 2025 6:03 am
Has thanked: 31 times
Been thanked: 4 times

Set color of selected 'Select2' items and background?

Unread post by Paul »

I just tried using the 'Select2' feature and I really like it!

How would I change:
1. the selected items color
2. the background color
of a 'Select2' object?

The select object in question is also marked as a 'Multiple' select.
Last edited by Paul on Sun Oct 12, 2025 1:55 am, edited 1 time in total.
Paul
Posts: 162
Joined: Mon Aug 25, 2025 6:03 am
Has thanked: 31 times
Been thanked: 4 times

Re: Set color of selected 'Select2' items and background?

Unread post by Paul »

I already tried adding

Code: Select all

background-color: #8c8682;
to the CSS property of the Multiple/Select2 select object, but that didn't work.
Post Reply