inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

모달 창에서 스크롤 위치 받아오기

Oh Chocho
0

모달 창에서 스크롤 위치 받아오기

<html>

<div class="layer-pop" id="popupPrdCompare" data-popup-layer="popupPrdCompare">
  <div class="layer-header"></div>
  <div class="layer-content">
     ...
  </div>
  <button type="button" class="pop-close" data-focus-next="popupPrdCompare">팝업닫기</button>
</div>

<js>

const testScrPop = $('.layer-content');
   testScrPop.scroll(function(){
   const $this = $(this);
   console.log($this.scrollTop());
})

프론트엔드

답변 0