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 attempts to do this -- I know this is
broken.

$(function() {
        if ($('[EMAIL PROTECTED]([EMAIL PROTECTED])]').addClass('foundMatch');
});

Can anyone point me in the right direction? _Really_ apologise for
asking this lame question, it's just I've tried so many things and
keep failing...

With thanks in advance for any suggestions, cheers, -Alan

Reply via email to