[jQuery] Re: Xpath Plugin: Child Selector Predicate Support [\d+]

2008-09-19 Thread John Boxall
}); John On Sep 18, 8:14 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > you could use the :eq() selector:http://docs.jquery.com/Selectors/eq#index > > --Karl > > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Sep 18, 2008, at 1:42 PM, John

[jQuery] Xpath Plugin: Child Selector Predicate Support [\d+]

2008-09-18 Thread John Boxall
Hey Jquery hackers: I'm doing some work with the Xpath plugin and I notice it doesn't support expressions like: /html/body/center/form/table/tbody/tr/td[2]/input[3] (Used to select the search box on www.google.com!) I would like to extend the plugin to support this kind of expression. Because

[jQuery] Re: Hover on all elements: $(*).hover(...)

2008-09-18 Thread John Boxall
;).find('*').filter(function(){ > > >>   return !$(this).children().length;}) > > > >> .add('p').not('p *') > > >> .hover(function(event){ > > > >>     var t=event.target  //this will be the strong tag inside the > > >

[jQuery] Re: Hover on all elements: $(*).hover(...)

2008-09-18 Thread John Boxall
*').filter(function(){ > >>   return !$(this).children().length;}) > > >> .add('p').not('p *') > >> .hover(function(event){ > > >>     var t=event.target  //this will be the strong tag inside the > > >>     if ($(this).children(

[jQuery] Re: Hover on all elements: $(*).hover(...)

2008-09-16 Thread John Boxall
#x27;*').filter(function(){ >   return !$(this).children().length;}) > > .add('p').not('p *') //without this, if a paragraph contains tags > thehoverwon't be applied to the most of the text > > On Sep 12, 9:29 pm, John Boxall <[EMAIL PROTECTED]> w