웹프로그래밍

본문 바로가기
사이트 내 전체검색


웹프로그래밍
웹프로그래밍

2. [JQUERY]클릭 이벤트 강제 발생

페이지 정보

작성자 관리자 댓글 1건 조회 3,504회 작성일 20-03-02 14:18

본문

2. [JQUERY]클릭 이벤트 강제 발생

강제로 클릭 이벤트를 발생해야 하는 경우가 있었다.

 


<html xmlns=”http://www.w3.org/1999/xhtml“>
< head>
< title></title>
< style type=”text/css”>
.hover{}
< /style>
< script src=”../js/jquery-1.3.2-vsdoc2.js” type=”text/javascript  ”></script>
< script type=”text/javascript  ”>
$(document).ready(function () {
//btn클릭 이벤트 처리
$(“#btn”).click(function () { alert(‘버튼이 클릭되었습니다.’) });
//페이지 로드시 버튼 클릭
$(‘#my .hover’).click(function () { alert(‘버튼이 클릭’); });
$(‘#my input[type=button]’).one(“click”, function () {
alert(‘역시 버튼이 사용자에 의해서 클릭됨’);
});
$(‘#btn’).bind(“click”, function () { alert(‘버튼이 클릭됨’); });
//버튼 클릭이 아니라 코드에 의해서 click이벤트를 실행하고 싶다면?
$(‘#btn’).trigger(‘click’); //실행하자마자 click이벤트를 트리거 함
//이것은 정말 고마운거임. ㅎ 사용할일이 많~~~~습니다. ㅋ
});
< /script>
< /head>
< body>
< div id=”my”>
< input type=”button” id=”btn” value=”버튼” class=”hover” />
< /div>
< /body>
< /html> 

댓글목록

Holder님의 댓글

Holder 작성일

https://jerseysforcheapwholesale.us.com/ Cheap Jerseys
https://www.nflproshops.com.co/ NFL Shop
https://www.hockeyjerseyswholesale.us.com/ Cheap NHL Jerseys
https://www.nflstoreonlineshopping.us/ NFL Store Online Shopping
https://www.nfljerseysofficialshop.us/ NFL Jerseys
https://www.nflfanshop.us.com/ NFL Team Shop
https://www.basketballjerseyswholesale.us/ NBA Jerseys
https://www.nflshop.com.co/ NFL Shop
https://www.wholesalecheapjerseysshop.com.co/ Wholesale Jerseys China
https://www.nflfanshop.com.co/ NFL Fan Shop
https://www.nfljerseyscheap.com.co/ Cheap NFL Jerseys
https://www.baseballjerseyscheapwholesale.us.com/ MLB Jerseys
https://www.cheapestjerseysfromchinafactory.us.com/ Cheap Jerseys
https://www.footballstores.us.com/ NFL Jerseys
https://www.cheapjerseyswholesalefreeshipping.com.co/ Jerseys Cheap
https://www.footballjerseys.com.co/ Football Jerseys
https://www.nflfootballjerseys.com.co/ Custom Football Jerseys
https://www.nbashop.us.org/ NBA Shop Online
https://www.nflgearuniforms.us/ NFL Gear
https://www.officialmlbstore.us.com/ MLB Official Site
https://www.footballproshop.us.com/ NFL Pro Shop
https://www.nflstores.com.co/ NFL Store
https://www.basketballjerseyswholesale.us.com/ NBA Jerseys
https://www.footballstoreonlineshopping.us.com/ NFL Jerseys
https://www.mlbjerseysforcheap.us.com/ Wholesale MLB Jerseys
https://www.cheapjerseyssale.us.org/ Cheap Jerseys Sale
https://www.nhljerseysforcheap.us.com/ Cheap NHL Jerseys
https://www.cheapbasketballjerseyswholesale.us.com/ Cheap NBA Jerseys
https://www.footballjerseyscheapest.us.com/ NFL Jerseys Cheap
https://www.hockeystores.us.com/ NHL Store Online
https://www.cheaphockeyjerseys.us.com/ NHL Jerseys Cheap
https://www.jerseyscheap.com.co/ Cheap China Jerseys
https://www.wholesalejerseyschina.com.co/ Wholesale Jerseys
https://www.officialbaseballjerseys.us.com/ MLB Jerseys
https://www.hockeyjerseyscheap.us/ Cheap NHL Jerseys
https://www.cheap-jerseyswholesale.com.co/ Jerseys Wholesale
https://www.cheapjerseysfromchinawholesale.com.co/ Wholesale Jerseys
https://www.wholesalefootballjerseyscheap.us.com/ Cheap NFL Jerseys From China
https://www.nfl-shop.com.co/ NFL Shop
https://www.wholesalejerseysforcheap.com/ Wholesale Jerseys China
https://www.cheapwholesalejerseys.com.co/ Jerseys Wholesale
https://www.cheapbaseballjerseyswholesale.us.com/ MLB Jerseys Wholesale
https://www.newfootballjerseys.us.com/ Official NFL Jersey
https://www.cheapnfljerseysfromchina.com.co/ NFL Jerseys Wholesale
https://www.basketballapparel.us/ NBA Apparel
https://www.officialfootballjerseys.us.com/ Official NFL Jersey
https://www.mlbjerseyswholesalecheap.us.com/ MLB Jerseys
https://www.bestfootballjerseys.us.com/ Football Jersey
https://www.nflfootballjerseysnew.us.com/ Football Jerseys
https://www.cheapfootballjerseysfromchina.us.com/ Cheap NFL Jerseys From China
https://www.wholesalejerseyscheapest.us.com/ Cheap Jerseys Wholesale
https://www.nhljerseyscheapwholesale.us.com/ NHL Jerseys
https://www.jerseyswholesaleforcheap.us.com/ Cheap Jerseys
https://www.nhlstore.com.co/ NHL Store
https://www.basketballjerseyscheapwholesale.us.com/ Cheap NBA Jerseys
https://www.footballstore.us.com/ NFL Jerseys
https://www.officialnfljersey.us.com/ NFL Jersey
https://www.nhlhockeyjerseyswholesale.us.com/ Cheap NHL Jerseys
https://www.baseballjerseyswholesale.us/ Baseball Jerseys
https://www.cheapjerseysfromchinawholesale.com/ Cheap Jerseys
https://www.mlbbaseballjerseyscheap.us.com/ MLB Jerseys China
https://www.jerseyswholesale.com.co/ Wholesale Jerseys
https://www.jerseysforcheapwholesale.us/ Cheap Jerseys Wholesale
https://www.cheapnfljerseyswholesale.com.co/ NFL Jerseys Cheap
https://www.footballjerseysforcheap.us.com/ Cheap NFL Jerseys
https://www.cheap-nfljerseys.com.co/ Cheap NFL Jerseys
https://www.baseballjerseyssale.us.com/ MLB Jerseys
https://www.nflfootballjerseysforcheap.com/ Cheap NFL Jerseys
https://www.nflgear.com.co/ NFL Apparel
https://www.nbajerseysnew.us.com/ Custom NBA Jerseys
https://www.wholesalecheapjerseysfromchina.us/ Wholesale Jerseys China
https://www.mlbbaseballjerseys.us.org/ MLB Jerseys
https://www.nbastores.com.co/ NBA Store
https://www.baseballjerseyscheap.us.com/ Cheap Custom MLB Jerseys
https://www.jerseyscheapwholesalefromchina.us.com/ Cheap Jerseys From China
https://www.baseball-jerseys.us.com/ Cheap MLB Jerseys From China
https://www.mlbshops.com.co/ MLB Shop
https://www.bestnfljerseyscheap.us.com/ NFL Jerseys Cheap


개인정보취급방침 서비스이용약관 모바일 버전으로 보기 상단으로

TEL. 063-469-4551 FAX. 063-469-4560 전북 군산시 대학로 558
군산대학교 컴퓨터정보공학과

Copyright © www.leelab.co.kr. All rights reserved.