Oh...I should've looked up invoke() in the API.
In the meanwhile I had used each :
$$('#frm-contact > label').each(function(e){ e.hide(); });On May 7, 2:25 pm, "T.J. Crowder" <[email protected]> wrote: > Hi, > > It's well worth giving the API a quick read:http://api.prototypejs.org > It only takes about an hour, but it gives you a good idea of what > Prototype provides and how it provides it. > > In terms of your specific requirement, in Prototype it looks like > this: > > $$('#frm-contact > label').invoke('hide'); > > HTH, > -- > T.J. Crowder > Independent Software Consultant > tj / crowder software / comwww.crowdersoftware.com > > On May 7, 8:46 am, Phonethics <[email protected]> wrote: > > > Im using Prototype instead of jQuery for a particular site, but I cant > > seem to do a simple thing like this : > > > $('#frm-contact > label').hide(); would've worked in jQuery - how do I > > get this working in PrototypeJS ? > > > Tried $$('#frm-contact > label').hide(); but it doesnt hide. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Prototype & script.aculo.us" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
