asp.net - Getting colour from database to DIV background -


i retrieving color code table stored in database.

how able set background color of div based on color code?

you can javascript.

document.getelementsbyclassname('divname')[0].style.backgroundcolor = "your color; 

or jquery

$('#element').css('background-color',''); 

you need pull values db onto page , find value , assign it


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -