Forums

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

Home Forums CSS how to change style of element when selected?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32782
    Saeed
    Member

    i have below code. if click on li content, change value of p elemet with changeText().
    how do i apply new style to selected li ?
    or
    how to apply new style to selected elements (div,span,li)?


    • 4 TB

    • 8 TB

    • 12 TB



    Welcome to the site

    #51002
    Chris Coyier
    Keymaster

    How to swap the text of the list items with the model number on click:

    http://jsbin.com/isenu5/edit

    How to change paragraphe element to model number on click:

    http://jsbin.com/isenu5/2/edit

    #75736
    Saeed
    Member

    my friend
    i want apply new style on selected li.
    for example add new border to the selected li or change class on selected li.

    #75600
    Akito
    Participant

    Something like this you mean?




    • text

    • text

    • text

    • text

    +


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