[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