how to add special class for labels and errors on zend form elements?
Posted
by user1400
on Stack Overflow
See other posts from Stack Overflow
or by user1400
Published on 2010-04-07T18:41:25Z
Indexed on
2010/04/11
16:43 UTC
Read the original article
Hit count: 264
zend-framework
|zend-form
hello how we could add a special class for labels and errors for a zend-form-element for example html output code before add classes
<dt id="username-label"><label for="username" class="required">user name:</label></dt>
<dd id="username-element">
<input type="text" name="username" id="username" value="" class="input" />
<ul class="errors"><li>Value is required and can't be empty</li></ul></dd>
and code after we add classes
<dt id="username-label"><label for="username" **class="req-username"**>user name:</label></dt>
<dd id="username-element">
<input type="text" name="username" id="username" value="" class="input" />
<ul **class="err-username"**><li>Value is required and can't be empty</li></ul></dd>
thanks
© Stack Overflow or respective owner