jquery hover

Out of context: Reply #10

  • Started
  • Last post
  • 12 Responses
  • moural0

    I have to use javascript because of the way the links are configured.

    When I click one link, the other links on the page get a strike through them and the active link remains unchanged. When I hover over any of the links, I want them to be underlined only (no strike). When I mouseout I want them all to reset to how they were - strike or no strike.

    When I use a class, it won't work because it just adds the class to the existing one. So, if I have a class with 'text-decoration: line-through' and add another class with 'text-decoration: underline', it uses both. I have to first remove one...

    The problem is all of the links are not the same, so I can't do that.

    • you can remove classes too, or put !important in the CSS attributes if you append classesernexbcn

View thread