set opacity js
snippet in javascript

set opacity js

user8820


 document.getElementById("myDIV").style.opacity = "0.5";