Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Issue with .children and CSS

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #195287
    ThatCat
    Participant

    Hi there! I’m developing something, and I can’t make this code works:

    http://jsfiddle.net/s966zqdt/

    /* The image is illustrative */

    But, if I erase “.children(this)” from my JS, all the “a” makes the effect who I only want in the selected/mouseover “a”.

    I hope this gonna be understandable.
    Thanks.

    #195616
    Paulie_D
    Member

    It’s not clear what you are exactly trying to do but what you need to do (at least as I understand it) is..

    Find the child of .resaltado that has a class of titulo-trabajo and apply a color to the child…(there is only one).

    http://jsfiddle.net/s966zqdt/2/

    Frankly, I’d be add/changing classes rather than directly affecting CSS but I think this is it.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.