# Adding multiple classes at one time

**URL:** <https://forum.pinegrow.com/t/adding-multiple-classes-at-one-time/1696>\
**Category:** Third Party Plugins\
**Created:** [March 7, 2018, 5:55pm UTC](https://forum.pinegrow.com/t/adding-multiple-classes-at-one-time/1696 "2018-03-07T17:55:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![msavard](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@msavard](https://forum.pinegrow.com/u/msavard)\
**Post date:** [March 7, 2018, 5:55pm UTC](https://forum.pinegrow.com/t/adding-multiple-classes-at-one-time/1696/1 "2018-03-07T17:55:11Z")

</div>

When creating a plug in is it possible to add/remove two classes at one time? For example, in Semantic-UI to get something floated to the right you need to add “right floated” in that order. It is easy in a plug in to make it add/remove one class, and I can even make it add two classes, but I can’t make it remove those two classes. Any ideas? See the example below.

```
'Semantic-UI.button.floated' : {
                    	type: 'select',
                    	action: 'apply_class',
                    	show_empty: true,
                    	name: 'Floated',
                    	options: [
                    		{key: 'left', name: 'Left'},
                    		{key: 'right', name: 'Right'}
                    		
                    	]
                    },

```

What I would like is the following

```
'Semantic-UI.button.floated' : {
                	type: 'select',
                	action: 'apply_class',
                	show_empty: true,
                	name: 'Floated',
                	options: [
                		{key: 'left floated', name: 'Left'},
                		{key: 'right floated', name: 'Right'}
                		
                	]
                },

```

That will add the classes correctly but when I choose the option to remove them it doesn’t remove anything.
