QucikForm -- Attributes not being set in addElement
| From: | Sawan Vithlani | Date: | Mon, 23 Aug 2004 04:24:54 +0000 |
| Subject: | QucikForm -- Attributes not being set in addElement | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14223@lists.php.net to get a copy of this message | ||
Hello All.
I want to change the fonts of the elements of my form and am trying to
do this by passing on a CSS class as the last (attribute) parameter to
the form->addElement() function. Here is how the code goes
.
.
.
<style type="text/css">
.fnt { font-family: fantasy; }
</style>
.
.
.
myFrom->addElement('text', 'text1', 'name', "class=fnt");
.
.
.
This does not work. Am I doing anything wrong?
Thanks
Sawan