Re: Html quickform sigma template and dom element id's
| From: | Alexey Borzov | Date: | Tue, 09 Nov 2004 10:46:59 +0000 |
| Subject: | Re: Html quickform sigma template and dom element id's | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15398@lists.php.net to get a copy of this message | ||
Hi,
Aaron wrote:
I would like to be able to offer (for ease of use) clickable text for elements to select them, a good example of this might be with radio boxes, where they are quite small and its easier to hit the text label for these things rather than the box it self. like so: <label for="moreinfoyes">Send me more info</label> <input type="radio" name="moreinfo" id="moreinfoyes" value="yes"> <label for="moreinfono">No junk mail thanks</label> <input type="radio" name="moreinfo" id="moreinfono" value="no"> Is this possible when using the sigma template system?QuickForm automatically adds IDs to radios and checkboxes and wraps the $text (displayed to the right of the element) in the <label> tags. If you want to do the same for some other elements or add multiple <label> tags for one, you'll need to hack the renderer.