Re: quickform
| From: | Poncho Pilate | Date: | Sat, 14 May 2005 17:47:41 +0000 |
| Subject: | Re: quickform | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-19218@lists.php.net to get a copy of this message | ||
Richard,
The <label> tag does not need the "for" attribute to focus on a form element
if it is wrapped around said element, but if you do need it, try this:
http://pear.php.net/bugs/bug.php?id=3834
I'm using a variation on this with QuickForm + Smarty array renderer.
Regards;
Poncho
----- Original Message ----- From: "Richard U" <richard.udo@gmail.com> To: <pear-general@lists.php.net> Sent: Saturday, May 14, 2005 4:10 AM Subject: [PEAR] quickform hey guys... im suing quick form with HTML_QuickForm_Renderer_ITDynamic renderer and for the element im i wish to use label tag but the label tag has a for attribut and im not sure how to pass an id to the element template . . . <!-- BEGIN qf_element --> <label class="default_formlabel" for="<how can i pass this id?>"><!-- BEGIN required --><span class="default_required">*</span><!-- END required -->{qf_label}<!-- BEGIN error --><span class="default_error">{qf_error}</span><br /><!-- END error -->{qf_element}</label> <!-- END qf_element --> . . .