[jQuery] Re: jQuery Selector Help

2009-12-23 Thread Mike Walsh
[ ... snipped ... ] > > ... and after looking at your code (which always helps), I see you're > referencing "this" (as opposed to jQuery's $(this)), which is why html() > wouldn't have worked. > > In that case, sure.  It's been said that "this" is more efficient than > creating a jQuery reference

Re: [jQuery] Re: jQuery Selector Help

2009-12-22 Thread Charlie Griefer
On Tue, Dec 22, 2009 at 10:40 AM, Charlie Griefer wrote: > On Tue, Dec 22, 2009 at 10:34 AM, Mike Walsh wrote: > >> >> [ ... snipped ... ] >> >> Thanks for pointing me in the right direction. This is what I ended >> up getting to work: >> >>jQuery("span.event", ".calendar-table").eac

Re: [jQuery] Re: jQuery Selector Help

2009-12-22 Thread Charlie Griefer
On Tue, Dec 22, 2009 at 10:34 AM, Mike Walsh wrote: > > [ ... snipped ... ] > > Thanks for pointing me in the right direction. This is what I ended > up getting to work: > >jQuery("span.event", ".calendar-table").each(function(){ >var html = this.innerHTML.replace(/()\

[jQuery] Re: jQuery Selector Help

2009-12-22 Thread Mike Walsh
On Dec 22, 12:09 pm, Charlie Griefer wrote: > 2009/12/22 Šime Vidas > > > Well, you selected BR elements, which are empty elements, so it's no > > mystery why this.innerHTML returns undefined... > > > Also, DIVs shouldn't appear inside SPANs... > > He did state that he's using generated HTML.  

Re: [jQuery] Re: jQuery Selector Help

2009-12-22 Thread Charlie Griefer
2009/12/22 Šime Vidas > Well, you selected BR elements, which are empty elements, so it's no > mystery why this.innerHTML returns undefined... > > Also, DIVs shouldn't appear inside SPANs... > He did state that he's using generated HTML. He has no control over it. Mike - this isn't really a jQ

[jQuery] Re: jQuery Selector Help

2009-12-22 Thread Šime Vidas
Well, you selected BR elements, which are empty elements, so it's no mystery why this.innerHTML returns undefined... Also, DIVs shouldn't appear inside SPANs...

[jQuery] Re: jQuery Selector Help

2009-12-22 Thread Mike Walsh
On Dec 22, 8:03 am, Dhruva Sagar wrote: > I would suggest you to wrap the sections within * into a div and select that > div. > > Thanks & Regards, > Dhruva Sagar. > [ ... snipped ... ] Unfortunately I don't have control of the generated content. The content is generated by a WordPress Calend

RE: [jQuery] Selector Help

2009-11-30 Thread Rick Faircloth
Good, practical formatting for understand “the chain”… From: Michael Geary [mailto:m...@mg.to] Sent: Monday, November 30, 2009 3:28 AM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Selector Help That's a nice solution. Let's make it easier to follow with some i

Re: [jQuery] Selector Help

2009-11-30 Thread Michael Geary
{ >> $(this).parent().siblings('li').removeClass('active'); >> $(this).parent('li').addClass('active'); >> }); >> >> Maurício >> >> -Mensagem Original- >> *De:* Charlie >> *Para:* jquery-en@googlegroups.com >> *Enviada em:* domingo, 29 de novembro de 2009 03:56 >> *Assunto:* Re: [jQuery] Selector Help >> ... >> >> Dave Maharaj :: WidePixels.com wrote: >> How would I go about adding class to the li in this set up? >> all >> some >> none >> >> ... >> >> >> >> >

Re: [jQuery] Selector Help

2009-11-29 Thread Michel Belleville
7;a.filter').click(function(){ > $(this).parent().siblings('li').removeClass('active'); > $(this).parent('li').addClass('active'); > }); > > Maurício > > -Mensagem Original----- > *De:* Charlie > *Para:* jquery-

Re: [jQuery] Selector Help

2009-11-29 Thread Mauricio (Maujor) Samy Silva
Enviada em: domingo, 29 de novembro de 2009 03:56 Assunto: Re: [jQuery] Selector Help ... Dave Maharaj :: WidePixels.com wrote: How would I go about adding class to the li in this set up? all some none ...

Re: [jQuery] Selector Help

2009-11-28 Thread Charlie
$('a.filter').click(function(){     $(this).parent().addClass('active'); }); Dave Maharaj :: WidePixels.com wrote: How would I go about adding class to the li in this set up? all some none $('a.filter').click(function(){ $(???).addClass('active'); }); Thanks Dave