# add to a class

**URL:** <https://discourse.softpress.com/t/add-to-a-class/23473>\
**Category:** ActionsDev\
**Created:** [July 12, 2016, 9:08pm UTC](https://discourse.softpress.com/t/add-to-a-class/23473 "2016-07-12T21:08:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![max-fancourt](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@max-fancourt](https://discourse.softpress.com/u/max-fancourt)\
**Post date:** [July 12, 2016, 9:08pm UTC](https://discourse.softpress.com/t/add-to-a-class/23473/1 "2016-07-12T21:08:51Z")

</div>

Hi everyone I have been racking my brains and I cant remember how to append a class from an action to a div thats already has classes added to it from the style palette. I was looking for for something like

```
      myTag.fwAddJToTag("class","myclass");

```

but obviously this would give me

```
   <div id="item1" class="style1;myclass"></div>

```

so I was racking my brains to remember if there was a proper way to append to a class

Cheers in advance

max

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [July 12, 2016, 10:55pm UTC](https://discourse.softpress.com/t/add-to-a-class/23473/2 "2016-07-12T22:55:36Z")

</div>

Start here and read down a few methods:

> <https://gist.github.com/walterdavis/8138585#file-gistfile1-js-L118>

Walter

> On Jul 12, 2016, at 5:08 PM, max [email@hidden](mailto:email@hidden) wrote:
> 
> Hi everyone I have been racking my brains and I cant remember how to append a class from an action to a div thats already has classes added to it from the style palette. I was looking for for something like
> 
> ```
> myTag.fwAddJToTag("class","myclass");
> 
> ```
> 
> but obviously this would give me
> 
> ```
> <div id="item1" class="style1;myclass"></div>
> 
> ```
> 
> so I was racking my brains to remember if there was a proper way to append to a class
> 
> Cheers in advance
> 
> max
> 
> * * *
> 
> actionsdev mailing list  
> email@hidden  
> Update your subscriptions at:  
> [Information for existing FreewayTalk / Groups.io users - Site Feedback - Softpress Talk](https://freewaytalk.softpress.com/person/options)

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:  
[https://freewaytalk.softpress.com/person/options](https://freewaytalk.softpress.com/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [July 12, 2016, 10:56pm UTC](https://discourse.softpress.com/t/add-to-a-class/23473/3 "2016-07-12T22:56:33Z")

</div>

Sorry if you’re reading this on the Web. Line 118 and down on the embedded file:

> <https://gist.github.com/walterdavis/8138585>

Walter

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![max-fancourt](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@max-fancourt](https://discourse.softpress.com/u/max-fancourt)\
**Post date:** [July 13, 2016, 7:04pm UTC](https://discourse.softpress.com/t/add-to-a-class/23473/4 "2016-07-13T19:04:23Z")

</div>

thanks walter and before I forget thanks for putting on the right track on the consistent line endings

cheers max

* * *

actionsdev mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
