Page 1 of 1

Add class to body

Posted: Thu Jul 04, 2013 3:59 pm
by Andrés Méndez

Hello.

I want to try jQuery Fastbutton, but I need to add a class to the body:
code<body class='use-fastclick'>/code

How can I do it?

Thanks.


Add class to body

Posted: Thu Jul 04, 2013 4:17 pm
by Kateryna Grynko

Hi Andrés,

Run the following code on Page Load event:
code$( "body" )&#46;addClass( "use-fastclick" );/code