Hi,
I am embarrassed to say I can't find a way to select the third cell in
each row of a table and add a class to it.
I tried this:
$('.vfOptions tr td').eq(2).addClass('status');
and it worked for the first row but not subsequent rows.
So I tried this, thinking it was the correct con
Hi cleverer people than me...
Please can someone point me in the right direction to use this
brilliant plugin but have it add no stlye so I can add style to an
unstyled chunk of markup?
I'm calling the plugin with
$('.linkToFaq a').cluetip({splitTitle: '|', width: '100px',
cluetipClass: 'fdFaq'
:
> $.each($(document.body).attr('class').split(' '), function(key, value)
> {
> $('h3.' + value).addClass('foundMatch');
>
> });
>
> -Hector
>
> On Wed, Nov 19, 2008 at 10:00 AM, alanfluff
> <[EMAIL PROTECTED]>wrote:
>
&g
m, "Hector Virgen" <[EMAIL PROTECTED]> wrote:
> This may be a little longer but it checks each body class individually:
> $.each($(document.body).attr('class').split(' '), function(class)
> {
> $('h3.' + class).addClass('foundMatch'
Yes, CSS can do this, you may find if your page uses floats, that this
may have problems, but this is the most robust solution I have seen
(cross browser) with CSS:
http://www.themaninblue.com/writing/perspective/2005/08/29/
Good luck! Cheers, -Alan
On Nov 19, 5:24 am, Liam Potter <[EMAIL PROTE
dMatch
> class to the h3.
>
> I havn't tried any if statements with jquery yet so not sure how to
> structure that.
> Sorry Andy.
>
> alanfluff wrote:
> > Thanks SO much Liam.
>
> > This works but I was looking for triggerClass to flow from the classes
> >
a body
> tag with the class of triggerClass and add the foundMatch class to the h3.
>
> alanfluff wrote:
> > Hi folks,
>
> > I am trying to add an extra class to an element (an h3) if one of it's
> > classes matches with one of BODYs classes.
>
> > In pseudo cod
Hi folks,
I am trying to add an extra class to an element (an h3) if one of it's
classes matches with one of BODYs classes.
In pseudo code, I am trying to:
if BODY class includes triggerClass and H3 class includes triggerClass
then addClass foundMatch to h3
This is one of my quite-a-few attemp
$(this).next('.expander.map').show();
>
> });
>
> That would expand the next map based on whatever was clicked.
>
> I hope this helps :)
>
> -Hector
>
> On Wed, Nov 12, 2008 at 12:04 PM, alanfluff
> <[EMAIL PROTECTED]>wrote:
>
>
>
> > Yep. Get
$(this).next('.expander.map').show();
>
> });
>
> That would expand the next map based on whatever was clicked.
>
> I hope this helps :)
>
> -Hector
>
> On Wed, Nov 12, 2008 at 12:04 PM, alanfluff
> <[EMAIL PROTECTED]>wrote:
>
>
>
&g
:53 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote:
> You're right, $('.linkify.map:first') will always return the first element
> that matches linkify.map.
> If you want to make it in respect to a container, try
> $('#container').find('.
-
trigger I click.
It looks as if the scope of the :first is the whole DOM and no
starting from the point where the click occurred and affecting the
first instance after it (which is what I want).
Thanks in advance for any further help! Cheers, -Alan
On Nov 12, 2:36 pm, alanfluff <[EMAIL PROTEC
Thanks _lots_ for the quick reply Hector -- I'll go try that. Cheers!
On Nov 12, 2:22 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote:
> Try $('.linkify.map:first'). That should return the first matched element.
> -Hector
>
> On Wed, Nov 12, 2008 at 11:
Hi,
I am trying to limit the scope of a click trigger to the first/next
matched target.
This works fine if I have one container of class .expander.map but as
soon as I add another, they both respond (I guessed they would ;)
$('.linkify.map').click(function() {
$('.expander.map').show();
14 matches
Mail list logo