jQuery - re-use CSS value on another element
        Posted  
        
            by danit
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by danit
        
        
        
        Published on 2010-03-29T08:26:47Z
        Indexed on 
            2010/03/29
            8:33 UTC
        
        
        Read the original article
        Hit count: 336
        
jQuery
I have a background colour set on a series of buttons, .button1, .button2., .button3 & .button4. Each of these buttons has a different background colour set in CSS.
I want to use jQuery to detect the background colour of the button when it is clicked and apply that colour to .toolbar.
Is this possible?
© Stack Overflow or respective owner