3

I want to make the document opacity 0.5 except for one div. Can any one help me with this? I have tried to do the following:

$("#button").click(function() {
    $("body").css({ opacity: '0.5' });
    $("#DIV").css({ opacity: '1' });
});
Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
Montaser Qasem
  • 117
  • 2
  • 11

0 Answers0