I'm not sure if this is possible via jQuery or other approach, but i've incorporated the theme switcher widget into my web app. I have a set of Selectable UI elements that I'd like to color the same as the current theme's ui-state-highlight color upon page load/theme switch. I'm attempting to store the value of the background in a var, so I can use .css to set the selectable color to match.
input = $('.ui-state-highlight').css('background')
returns undefined, but if I try with
input = $('.ui-state-default').css('color')
I can return a value.
What did I miss?