Re: QuickForm: any way to add a style/CSS class to a static element? ...OR... have a textarea be non-editable?
| From: | Justin Patrin | Date: | Wed, 03 Aug 2005 23:51:33 +0000 |
| Subject: | Re: QuickForm: any way to add a style/CSS class to a static element? ...OR... have a textarea be non-editable? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20251@lists.php.net to get a copy of this message | ||
On 8/3/05, l Burnerheimerton <lburnerheimerton@yahoo.com> wrote:
> I can add the following to a input field (text,
> textarea,...) but not to a static element:
>
> array('class' => 'grayText')
>
> Any work-arounds?
>
This is because a static "element" is not an element at all. It's just
HTML. Try putting <span class="grayText">your static text here</span>
in the element.