Forums

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

Home Forums CSS change background of tr when I checked checkbox next to it

  • This topic is empty.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #41033
    amis
    Participant

    I wonder how to do this

    I have table with data and in the td of it contain checkbox

    I want when i checked this change backgroung of tr

    ??

    #115709
    Paulie_D
    Member

    Can you put some code in Codepen for us?

    #115711
    amis
    Participant

    http://codepen.io/anon/pen/nysDl

    check box is under delete
    I want when i check checkbox background of tr changed

    #115726
    Kitty Giraudel
    Participant

    Not possible with pure CSS since there is no parent selector.

    #115714
    Paulie_D
    Member

    Not unless they have the same parent.

    #115823
    amis
    Participant

    but i see it in many sites !

    #115834
    Senff
    Participant

    Not sure why the use of jQuery is not allowed (did not see a “pure CSS” requirement?), so I’d go for this: http://jsfiddle.net/senff/j4nTf/

    #115998
    amis
    Participant

    thx Sneff , you r gr8

    #116001
    Senff
    Participant

    You’re welcome, name is SENFF though.

    #116002
    amis
    Participant

    Thx SENFF ^_^

    are u know themeforest !

    as I think about building wordpress theme for it ?

    can u advice me !

    #116016
    Watson90
    Member

    > thx Sneff

    HAHAHAHA! This just had me laughing…

    #116032
    amis
    Participant

    > HAHAHAHA! This just had me laughing…

    It’s keyboard wrong , I am really sorry

    #116039
    Senff
    Participant

    No worries, common mistake, happens all the time!

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