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
Post a Comment