Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8318661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:03:08+00:00 2026-06-08T22:03:08+00:00

So i have: #selection_menu .secondary_options button:hover { color: #000066; } and it works great

  • 0

So i have:

#selection_menu .secondary_options button:hover { color: #000066; }

and it works great on my site..

When one of these buttons is clicked, however, i run a javascript function that contains:

$('button').css("color","#FFFFFF");
if(!$sameTile)
    $($tileSelector).css("color","#000066");

So that when the button is clicked, the highlight color sticks when the mouse is moved away.

The problem i am having is that after this is run for the first time, the buttons stop changing color when highlighting. How can i get around this? Or is this normal behavior?

I am trying to add a class and i can’t get it to work: http://jsfiddle.net/sUKkb/1/

Some more of my code:
index: http://pastebin.com/7gYu9YG8
css: http://pastebin.com/Jz1bvzrr

Or this might be more helpful: http://staging.easyzag.com/style.css

view-source:http://staging.easyzag.com/index.php?section=drink

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:03:10+00:00Added an answer on June 8, 2026 at 10:03 pm

    I believe this is (generally) what you’re after:

    jsFiddle: http://jsfiddle.net/sUKkb/5/

    HTML:

    <button class="not-sticky">Hello</button>
    

    JS:

    $('button').on('click', function(e){
        $(this).removeClass('not-sticky').addClass('sticky-state');
    });
    

    Note, this does require a relatively new version of jQuery (1.7+). You could also use:

    $('button').live('click', function(e){
        $(this).removeClass('not-sticky').addClass('sticky-state');
    });
    

    or

    $('button').click(function(e){
        $(this).removeClass('not-sticky').addClass('sticky-state');
    });
    

    for older versions of jQuery.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a selection of products within my wordpress site. They are configurable products
I have added checkbox selection model to grid panel. It works fine in IE8
I would like to have sections of a site so the top menu is
I have treeview and a context menu that is shown for every node. One
I have one parent dialog , this dialog have menu , in this menu
Scenario: I have one GUI where i have multiple user controls as: One UserControl
I have an activity which gets called by 2 intents, one after a simple
Okay i have a selection box(drop down menu) and a set of radio buttons.
My site is to have a section for normal users, a section for managers,
I have a root view which contains a table and a button. When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.