i have some problem with rgb. i am writing a color selector , 3 sliders demonstrate 3 color , red and green and blue , then the mix color appears in a div named 'result' in the end of page. consider i have 3 variables which indicates 3 magnitude for r , g , and b. and this is my code :
document.getElementById("result").style.backgroundColor = 'rgb(r,g,b)'
but this is not working at all, and when i use below code ,instead of the above one , it is working :
document.getElementById("result").style.backgroundColor = 'rgb(10,10,10)'