I'm still using 1.2.4 version, but this happens with 1.3 too. Maybe that's the correct behavior of the function. If it is, there is other way to do what I need without a lot of code? I can't find anything about this subject in my searches. Thanks!
ps. I'm brazilian too. =) On 10 dez, 10:45, Fábio M. Costa <[email protected]> wrote: > What version of mootools are you using? > > -- > Fábio Miranda Costa > front...@portalpadroes > Globo.com > *github:* fabiomcosta > *twitter:* @fabiomiranda > *ramal:* 6410 > > > > On Fri, Dec 10, 2010 at 10:42 AM, Tyk <[email protected]> wrote: > > Hello! > > > ps.: sorry my bad english. > > > I'm having some problems with getElements function. I'm not sure if > > this is the intended way, but when I try to put more than one selector > > in the parameters, the array is sorted by the order of the selectors > > instead of the order elements appear on the page. Example: > > > I have a form with: > > > 1 - A textarea > > 2 - A text input > > 3 - A text input > > > If I use form.getElements('input, textarea') to get the elements, the > > textarea element that is the first on the form will be the last on the > > array, because it filters all the inputs before. > > Like that: Array[2,3,1] > > > If I change the parameter order, it changes the array order too. > > > My question is: there is a way to get an array of elements in the > > order they appear on the page, while filtering types? I've tried $$ > > too, but with the same results.
