Adding class to the webform submit button By default, the web form is displayed with &lt;?php print drupal_render($form['submitted']); ?&gt; .

I need to make a small edit and add class="btn" to the submit button.

I can change its value with $form['actions']['submit']['#value'] = "click to become a member";

But I couldnt find a way to add the class.

Please help!

Thank you
I think that you have to do something like this (add an array):

$form['actions']['submit']['#value'] = "click to become a member", array('attributes' =&gt; array('class' =&gt; array('btn'), 'style' =&gt; array('CUSTOM STYLE DIRECTLY') ));


I'm not really sure if is there is the right place the you have to add that code, but that generally it's this code:

, array('attributes' =&gt; array('class' =&gt; array('btn'), 'style' =&gt; array('CUSTOM STYLE DIRECTLY') ))