var parent = document.id('group');
parent.getElements('.required').unshift(parent);

or

$$('#group, #group.required')

On Mon, Jan 23, 2012 at 9:46 PM, Eric Patrick <epatr...@quandis.com> wrote:

> A slight tweak to the fiddle:
>
> http://jsfiddle.net/HEYEZ/1/
>
> Eric
>
> On Jan 23, 10:45 pm, Eric Patrick <epatr...@quandis.com> wrote:
> > I have a recurring use case that involves selecting a subset of
> > elements, including the starting element itself. For example, I wish
> > to grab all elements that have a 'required' class, including the
> > element I'm calling.
> >
> > http://jsfiddle.net/HEYEZ/
> >
> > Is there a simple way to have Slick include the starting element for
> > matching when calling search?
> >
> > Thanks in advance,
> >
> > Eric
>

Reply via email to