ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • How to fix when jQuery click event not working.
    웹/jQuery 2021. 1. 11. 23:26
    반응형

    In this way, the click event did not work.

    $("#btnId").click( function() {
      // do it.
    }

     

    I fixed it like this.

    $(document).on("click", "#btnId", function() {
      // do it.
    }

     

    It works well.

    반응형

    댓글

Designed by Tistory.