목록jQuery (3)
kimmgamjja
$.param()$.param() : 맵, 컬렉션 형태의 문자열 배열을 쿼리스트링으로 변환var test = {name : "kim", age : "25"};$.param(test); // name=kim&age=25 https://blog.naver.com/javaking75/140185147895 [jQuery] jQuery 기타 - $.param() : 배열또는 객체를 쿼리스트링으로 변경 참고 API URL : http://api.jquery.com/jQuery.param/ [예...blog.naver.com
selectbox 변경( change 이벤트가 발생하기 ) 전 seletbox 값을 확인하는 방법 - change 이벤트 전에 focus이벤트를 줘서 값을 확인하면 된다$("select[name='test']").on('focus', function () { console.log("before: "+this.value);}).change(function() { $(this).blur(); console.log("after: "+this.value);}); * focus() - 요소가 포커스를 받을 때 발생 ex)$("select[name='test']").on('focus', function () { console.log("포커스 이벤트");}); name이 test인 selectbox를 클릭했을 때..
자식창에서 부모창 제어하기 - window.opener 1. JQuerylet bookmarkListElm = $(window.opener.document).find("#header-bookmark-scroll").find(".simplebar-content") 2. JavaScriptconst bookmarkElm = window.opener.document.querySelector("#header-bookmark-scroll");