Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to remove a selected option from an aui-select2 using JS?

I am very new to the programming. I have an aiu-select2 box with multiple options as selected. At some point I need to deselect a particular option from the selection and need to replace it with new option using Java Script.

2 answers

1 accepted

1 vote
Answer accepted

Hi Sabin,

aui-select2 is based on Select2 version 3.x, so you can see the documentation for that here:

If you can't figure out how to remove one particular option, you may have to get all values into a list, remove the value you don't want, add the new one, and then set the value of the select2 with the new list of values.

You can use  AJS.$("#resourcesDropdown").auiSelect2('val','');

Workaround works fine! thanks

ahhhhhhhh! Now I found the correct solution on


When placeholder is used for a non-multi-value select box, it requires that you include an empty <option></option> tag as your first option.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events