I'm currently working on an app that allows users to select a color scheme from a dropdown form. The hexidecimal values associated with the selected color scheme successfully populate specific text fields as intended. However, I am facing difficulty in getting the background color of the text field to change according to the selected value.
You can view my fiddle here: http://jsfiddle.net/z4WxP/7/
I have tried various approaches, including adding a class and using CSS append to assign the value, but so far nothing seems to work:
document.getElementsByName('color_body_bg')[0].value = bodyBG[text].css('background-color', value = bodyBG[text]);