quickform: how to add style <span class="classname">formelement</span> to ONE element
| From: | l Burnerheimerton | Date: | Tue, 01 Aug 2006 17:52:56 +0000 |
| Subject: | quickform: how to add style <span class="classname">formelement</span> to ONE element | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24809@lists.php.net to get a copy of this message | ||
I have on element I want to highlight in yellow.
$form->addElement('text','note', 'Note:');
I have tried several variants of:
$form->addElement('text','note', 'Note:',
array('class' => 'hilite;'));
where "hilite" is a class referenced in a stylesheet.
but they don't work. I'm pretty sure it can be done
without altering the form/element templates.
Any ideas are much appreciated!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com