토글하기2 toggle(), 토글하기 toggle 원문 링크 http://api.jquery.com/toggle/ .toggle( handler(eventObject), handler(eventObject) [, handler(eventObject)] )Returns : jQuery 개요 : 조건에 일치하는 요소에 클릭 때 실행될 하나 이상의 핸들러를 바인딩합니다. .toggle( handler(eventObject), handler(eventObject) [, handler(eventObject)] ) handler(eventObject) 요소 클릭 짝수번째에 실행될 기능 handler(eventObject) 요소 클릭 홀수번째에 실행될 기능 handler(eventObject) ) 이 인자도 추가되면 토글의 순환이 3번 클릭에 한번씩으로.. 2012. 3. 9. jQuery API 정복 - class 토글하기, toggleClass() .toggleClass() 원문 링크 http://api.jquery.com/toggleClass/ 함수들 .toggleClass(className )Returns : jQuery 개요 : 조건에 일치하는 요소들에 클래스를 추가하거나 삭제합니다. 인자를 스위치 하면서 클래스를 바꿀 수 있습니다. .toggleClass( className ) className 토글을 위한 공백으로 연결된 하나 이상의 클래스 이름 .toggleClass( className, switch ) className 토글을 위한 공백으로 연결된 하나 이상의 클래스 이름 switch 클래스의 추가 또는 제거를 결정하는 부울값 .toggleClass( [switch] ) switch 클래스의 추가 또는 제거를 결정하는 부울값 .togg.. 2011. 11. 22. 이전 1 다음