var previous;
$("select").on('focus', function () {
previous = this.value;
}).change(function() {
alert(previous);
previous = this.value;
});
'FrontEnd' 카테고리의 다른 글
JQuery Array remove by value (push, pop, slice 이외의 기능을 쓰고 싶을 때) (0) | 2021.03.26 |
---|---|
JQuery dataTable 데이터를 가져오는 몇가지 방법 (0) | 2021.03.02 |
JQuery ajax for (async : false) (0) | 2020.12.03 |
JQuery get/set active tabs (0) | 2020.11.30 |
JQuery dataTables multi select style AND language config (0) | 2020.11.23 |