상세 컨텐츠

본문 제목

selectbox change 이전값 확인

JavaScript & HTML

by husks 2021. 8. 25. 15:10

본문

반응형

selectbox를 변경할때 이전값을 확인하는 소스 입니다.

 

$("select[name='test']").on('focus', function () {
    console.log("before: "+this.value);
}).change(function() {
    console.log("after: "+this.value);
});
반응형

관련글 더보기

댓글 영역