본문 바로가기

Javascript/jQuery

jquery 정리.. http://www.slideshare.net/yakuball/jquery-29167814 지금은 안쓰지만 또 모르지.. 더보기
jQuery selectBox 컨트롤. jQuery로 선택된 값 읽기$("#selectBox option:selected").val();$("#select_box > option:selected").val()$("select[name=name]").val(); jQuery로 선택된 내용 읽기$("#selectBox option:selected").text(); 선택된 위치var index = $("#test option").index($("#test option:selected")); ------------------------------------------------------------------- // Add options to the end of a select$("#selectBox").append("Apples");$("#sele.. 더보기
layer popup drag move 더보기
jQuery ajax 예제 scipt -------------------------------------------------------- function ajax(seq) { var data = {"seq":seq}; $.ajax({ url : "ajax.do", type : "POST", dataType : "json", data : data, success : function(result) { alert("성공"+result); $.each(result, function(i) { $(alert(result[i])); }); }, error : function(result) { alert("실패"+result); } }); } 서블릿 ----------------------------------------------------.. 더보기
w3schools JQuery페이지 번역 유용한 제이쿼리 기초를 한글로 번역하였습니다.. 제이쿼리 란? 제이쿼리는 자바 스크립트 함수의 라이브러리입니다. 제이쿼리는 코딩 양을 줄이고, 더 많은걸 나타내는 자바 스크립트 라이브러리입니다. 제이쿼리 라이브러리는 다음과 같은 기능을 포합니다. HTML element 선택 HTML element 조작 CSS 조작 HTML 이벤트 기능 자바 스크립트 효과와 애니메이션 HTML DOM 탐색 및 수정 AJAX 유틸리티 제이쿼리 라이브러리 추가 *jQuery 라이브러리는 모든 제이쿼리 방법을 포함, 하나의 자바 스크립트 파일(.js)로 저장됩니다. 자신의 컴퓨터에 jQuery 라이브러리를 저장하지 않으려면, Google이나 Microsoft에서 호스팅하는 jQuery 라이브러리를 사용할 수 있습니다. 제이쿼리.. 더보기