shown have different ids but another group has the same id.
Any ideas to correct this?
Thanks!!
On 28 Ago, 17:12, brian <bally.z...@gmail.com> wrote:
> I think the problem is not so much the value of the labels' "for"
> attribute (NOT the id, which it doesn't have) but the id of the radio
> elements. There are several groups of these, so there are several
> radio buttons with the same id.
>
>
>
> On Thu, Aug 27, 2009 at 10:25 PM, delocalizer<conrad.leon...@hotmail.com> wrote:
>
> > Do you mean the name is the same? Because it is supposed to be - both
> > buttons provide a value to the same field.
> > What is the symptom of your problem?
>
> > On Aug 27, 9:19 pm, "lacenaepro...@gmail.com"
> > <lacenaepro...@gmail.com> wrote:
> >> HI,
>
> >> I can't resolve a strange problem. This is my code:
>
> >> echo $form->input('User.SecurityAccess.'.$aco_id,
> >> array
> >> (
> >> 'div' => false,
> >> 'label' => false,
> >> 'type' => 'radio',
> >> 'legend' => false,
> >> 'default' => $selected,
> >> 'options' => array('allow' => " {$allow}",
> >> 'deny' => " {$deny}")
> >> )
> >> );
>
> >> I try to create a set of radio groups, every group has 2 raàdio
> >> buttons. I want taht every radio group has different id in their
> >> label, so the user can click directly on the label, BUT CAKE SEEMS TO
> >> PUT the same id in the code. This is the resulting code:
>
> >> <input type="radio" name="data[Group][SecurityAccess][4]"
> >> id="GroupSecurityAccessAllow" value="allow" />
> >> <label for="GroupSecurityAccessAllow"> Allow</label>
>
> >> <input type="radio" name="data[Group][SecurityAccess][4]"
> >> id="GroupSecurityAccessDeny" value="deny" checked="checked" />
> >> <label for="GroupSecurityAccessDeny"> <span style = 'color:
> >> red'>Deny</span></label>
>
> >> The other pairs of radio buttons has the SAME LABEL ID.
>
> >> ANY IDEAS?
>
> >> Tnx!! AS?
>
> >> Tnx!!- Nascondi testo citato
>
> - Mostra testo citato -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment