[ ... 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
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
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(/()\
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.
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
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...
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
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
{
>> $(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
>>
>> ...
>>
>>
>>
>>
>
7;a.filter').click(function(){
> $(this).parent().siblings('li').removeClass('active');
> $(this).parent('li').addClass('active');
> });
>
> Maurício
>
> -Mensagem Original-----
> *De:* Charlie
> *Para:* jquery-
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
...
$('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
12 matches
Mail list logo