$$("[name^='myname_']") should return all elements with names that begin
with myname_

Prototype has great CSS3 selectors support: check out:
http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#selectors

On Fri, Oct 30, 2009 at 10:49 AM, Yozefff <yoze...@gmail.com> wrote:

>
> Ok,
>
> let's day I have 2 elements :
>
> <input type='text' name='myname_1'>
>
> and
>
> <input type='text' name='myname_2'>
>
>
> So now I want to get all the elements wich has a name starting with
> "myname_"
>
> is this possible with getElementsBySelector?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to