How can I use the HTML5 <button> tag in Drupal 6

Posted by Frankie Yale on Stack Overflow See other posts from Stack Overflow or by Frankie Yale
Published on 2010-12-19T18:35:15Z Indexed on 2011/01/01 2:54 UTC
Read the original article Hit count: 159

Filed under:
|

I have the following HTML which I'd like to use in my Drupal 6 theme. It needs to replace the search-box code.

    <fieldset class="search">
        <input type="text" class="box font-myriad" />
        <button class="btn" title="Submit Search">Search</button>
    </fieldset>

I'm trying stuff like

$vars['form']['button']['#attributes'] = array('class' => 'btn');

in template.php, but no luck so far. Couldn't find much help on drupal.org.

© Stack Overflow or respective owner

Related posts about drupal

Related posts about search