How can I set the class for a <dt> element in a Zend_Form?

Posted by Mallika Iyer on Stack Overflow See other posts from Stack Overflow or by Mallika Iyer
Published on 2010-05-18T20:30:55Z Indexed on 2010/05/18 22:50 UTC
Read the original article Hit count: 346

Filed under:
|
|
|

I'm trying to set the width of the style for a group of < dt > elements in a Zend_Form. Is there a way to set a class for a dt element, so the end result would be something like this:

     <dt id="name-label" class="xyz" > // trying to add the 'class="xyz"
        <label class="required" for="name">Name:</label>
     </dt>

    <dd id="name-element">
        <input type="text" maxlength="255" size="30" value="" id="name" name="name">
    </dd>

© Stack Overflow or respective owner

Related posts about zend-form

Related posts about zend-decorators