Forums

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

Home Forums JavaScript how to change class of an element by click

  • This topic is empty.
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #247590
    Funkaholik
    Participant

    so you mean that order of classes in css has something to do with toggle?
    but that’s stooped and not handy at all .. how we can work with it?

    then we’ll need to find a way how to change order of classes by toggle in css file??))
    man i going to another threat .. i’m done or my head will expload

    thanx

    #247616
    Shikkediel
    Participant

    It’s in the name… cascading style sheet. :-/

    Some features will get preference over cascading classes:

    • Unique identifiers (id)
    • Using the important! rule
    • Inline style

    It is also actually possible to change the order in the stylesheet (with cssRules) but this is very circumventive and not recommended.

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