I am working on a color picker but i dont know how to add the hex value inside the $(customElements2).css
I have a screen https://image.prntscr.com/image/m52y3J_MQaGlZ_Bi6zc4pw.png
This is not working:
$(customElements2).css('background', 'linear-gradient(rgba(82, 25, 25, 0.45),rgba(249, 55, 55, 0.45),rgb(43, 25, 25)), url(../../../images/netpen/logo-bg.png)');
$(customElements2).css('background', 'linear-gradient(rgba(82, 25, 25, 0.45),'hex',rgb(43, 25, 25)), url(../../../images/netpen/logo-bg.png)');
Can anyone explain how to do it?