Selectors.Pseudo.headers = function() {
  return this.get('tag').test(/h\d/);
}

On Tue, Jul 7, 2009 at 1:47 PM, theiviaxx <[email protected]> wrote:

>
> Selectors.Pseudo.headers = function() {
>    return this.get('tag') == "h1" || this.get('tag') == "h2" ||
> this.get('tag') == "h3" || this.get('tag') == "h4" || this.get('tag')
> == "h5"  ||this.get('tag') == 'h6'
> }
>
> thanks for the link :)
>
> On Jul 7, 9:45 am, Thierry bela nanga <[email protected]> wrote:
> > this looks like custom selector,
> > look mootools examples athttp://
> davidwalsh.name/mootools-pseudo-selectors
> >
> > <http://davidwalsh.name/mootools-pseudo-selectors>
> >
> > On Tue, Jul 7, 2009 at 5:40 PM, TheIvIaxx <[email protected]> wrote:
> >
> > > Is there any way to do this in mootools?  jquery has $(':header').
> > > just wondering if mootools has something similar
> >
> > --
> > fax : (+33) 08 26 51 94 51
>

Reply via email to