티스토리 뷰
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jQuery Events Sample 1</title>
<script src="../Script/jquery-1.6.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("[name=clickInput]").focus(function () {
$("[name=resultInput]").width("300");
$("[name=resultInput]").val("클릭하세요에 포커스가 있습니다");
});
$("button").mouseover(function () {
$(this).css("border", "thin silver solid");
$(this).css("width", "200");
$(this).css("height", "30");
});
});
</script>
</head>
<body>
<input type="text" name="clickInput" value="클릭하세요" />
<input type="text" name="resultInput" />
<button>마우스를 올려보세요.</button>
</body>
</html>
Event Method | Description |
---|---|
$(document).ready(function) | Binds a function to the ready event of a document (when the document is finished loading) |
$(selector).click(function) | Triggers, or binds a function to the click event of selected elements |
$(selector).dblclick(function) | Triggers, or binds a function to the double click event of selected elements |
$(selector).focus(function) | Triggers, or binds a function to the focus event of selected elements |
$(selector).mouseover(function) | Triggers, or binds a function to the mouseover event of selected elements |
728x90
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 스프링 프레임워크(spring framewordk)
- java-개발 환경 설정하기
- 람다식(lambda expression)
- java 키워드 정리
- In App Purchase
- docker
- System.Diagnostics
- REST API
- error-java
- jsp 오픈 소스
- 문자 자르기
- 메이븐(maven)
- jstl(java standard tag library)-core
- system.io
- 스프링 프레임워크(spring framework)
- React
- await
- 표현 언어(expression language)
- 제품 등록
- nl2br
- jstl(java standard tag library)
- 스프링 시큐리티(spring security)
- .submit()
- java.sql
- 인텔리제이(intellij)
- MainActor
- java web-mvc
- 스프링 시큐리티(spring security)-http basic 인증
- 특정 문자를 기준으로 자르기
- 진수 변환
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함