Re: QF: setting defaults for a radio group
| From: | Justin Patrin | Date: | Fri, 28 Apr 2006 14:38:18 +0000 |
| Subject: | Re: QF: setting defaults for a radio group | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23878@lists.php.net to get a copy of this message | ||
On 4/28/06, Damien Cros <damienc@cc.in2p3.fr> wrote:
To setDefaults() they're basically the same element (they are logically the same element, a radio group). Just use the name and the value that you want to be selected. -- Justin PatrinDon't use setChecked() or setValue(). They are basically worthless as *anything* will override them. Use setDefaults() for everything. Allright, but as I said, how can I use setDefaults here? The two radio elements have the same name.How can I fix this? The name of the two radio elements are both the same: 'rdGroup' so I can't use it with setDefaults.