I am currently studying jQuery and have confirmed the behavior of fadeIn and fadeOut in order to overlay the screen. >Can't you?

The bottom of the source below is the question.

$(function () {
    $('# openOverlay'). click (function () {
        $('# overlay'). fadeIn ();
    $('# overlay'). click (function () {
        $('# overlay'). fadeOut ();

I don't think it's possible to run the code because an error occurs, but if you can, it would be helpful if you could tell me how to write it.

  • Answer # 1

    I think it works normally


Related articles