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';


Popular posts from this blog

Android: where to run keytool command in android

Can not connect to git using ssh (Permissions 0644 for '/root/.ssh/id_rsa' are too open.

Upload file on Google cloud storage using Java servlet on google app engine