If you want to change the div background then use,

document.getElementById("divIdName").style.background='#D6DE26';

Similarly, you can change div's text color dynamically using as
 document.getElementById("DivIdName").style.color='#00AEEF';


Comments

Popular posts from this blog

Struts 2 : Warning :No configuration found for the specified action: 'Login.action' in namespace: '/'

Upload csv file at Google Cloud Storage using java

Read Images from a xlsx file using Apache POI