I have an app that, when a color scheme is selected from a form dropdown, the hexidecimal values associated to that color scheme populate specific text fields from each field’s array value (this part works). What I cannot get the app to do is change the background color of the text field to match that particular value.
I have a fiddle: http://jsfiddle.net/z4WxP/7/
I’ve tried (multiple variations of) adding a class and doing a css append to populate with the value to no avail, like so:
document.getElementsByName('color_body_bg')[0].value = bodyBG[text].css('background-color',value = bodyBG[text]);
that’s the basic code for it
http://jsfiddle.net/XqCQJ/