ActionsDev

3 replies to this thread. Most Recent

max

12 Jul 2016, 9:08 pm

add to a class

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

it’s better to be lucky than clever.. :o)

waltd

12 Jul 2016, 10:55 pm

Start here and read down a few methods:

Walter

On Jul 12, 2016, at 5:08 PM, max <[email protected]> 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

Freeway user since 1997

http://www.walterdavisstudio.com

waltd

12 Jul 2016, 10:56 pm

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

Walter

Freeway user since 1997

http://www.walterdavisstudio.com

Back to Top

max

13 Jul 2016, 7:04 pm

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

cheers max

it’s better to be lucky than clever.. :o)