I have a JavaScript code snippet that looks like this:
document.getElementById("imgA").style.box-shadow = "0 0 5px #999999";
The hyphen in box-shadow
is causing an invalid assignment exception to be thrown by the JavaScript engine (specifically in Firefox). I have tried using "box-shadow"
and 'box-shadow'
, but neither works. Is there a way to resolve this issue without relying on jQuery's .css()
method?