• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 607
  • Last Modified:

IE JavaScript/CSS: filter:alpha(opacity=70);

Using JavaScript, how can I do this:
#modalOverlay {

Open in new window

1 Solution
Option 1:
a) Make CSS class:
b) Javascript
    document.getElementById('modalOverlay').className = 'someClass';

Option 2:
    document.getElementById('modalOverlay').style.filter = 'alpha(opacity=70)';

Note: Since you are using #modalOverlay I am making the logical leap that the element you want to place the filter on has an ID of "modalOverlay".
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Tackle projects and never again get stuck behind a technical roadblock.
Join Now