I'm attempting to set the class on a class on a form label using form builder.
Here's my code:
->add('email','text',array(
'label_attr' => array(
'class' => 'CUSTOM_LABEL_CLASS'
),
))
But here's my output:
<label class="CUSTOM_LABEL_CLASS required">Due Date</label>
how to delete the required prefix ?? thanks ,
* other ptoblem *
<div>
<label class="CUSTOM_LABEL_CLASS required" for="email">Due Date</label><input name="email" id="email" required="required" type="text">
</div>
how to set a class and id to the div tag ?