jQuery( ":image" )
jQuery( ":image" )
:image ~에 해당합니다. [type="image"]
추가 참고 사항 :
:imagejQuery 확장이며 CSS 사양의 일부가 아니기 때문에 사용하는 쿼리 :image는 기본 DOM querySelectorAll()메서드 에서 제공하는 성능 향상을 이용할 수 없습니다 . 최신 브라우저의 성능을 높이려면 [type="image"]대신 사용하십시오.
예:
모든 이미지 입력을 찾습니다.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>image demo</title>
<style>
textarea {
height: 45px;
}
</style>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<form>
<input type="button" value="Input Button">
<input type="checkbox">
<input type="file">
<input type="hidden">
<input type="image">
<input type="password">
<input type="radio">
<input type="reset">
<input type="submit">
<input type="text">
<select>
<option>Option</option>
</select>
<textarea></textarea>
<button>Button</button>
</form>
<div></div>
<script>
var input = $( "input:image" ).css({
background:"yellow",
border:"3px red solid"
});
$( "div" )
.text( "For this type jQuery found " + input.length + "." )
.css( "color", "red" );
$( "form" ).submit(function( event ) {
event.preventDefault();
});
</script>
</body>
</html>
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5036 | 웹서버 | 4년 전 | 2144 | ||
| 5035 | 웹서버 | 4년 전 | 2170 | ||
| 5034 | 웹서버 | 4년 전 | 2403 | ||
| 5033 | 웹서버 | 4년 전 | 1779 | ||
| 5032 | 웹서버 | 4년 전 | 2139 | ||
| 5031 | 웹서버 | 4년 전 | 2518 | ||
| 5030 | MySQL | 4년 전 | 2885 | ||
| 5029 | 웹서버 | 4년 전 | 7182 | ||
| 5028 | 웹서버 |
kerimdoor
|
4년 전 | 1633 | |
| 5027 | OS | 4년 전 | 6557 | ||
| 5026 | PHP |
|
4년 전 | 4641 | |
| 5025 | JavaScript |
|
4년 전 | 2405 | |
| 5024 | MySQL |
|
5년 전 | 3820 | |
| 5023 | MySQL | 5년 전 | 3032 | ||
| 5022 | PHP | 5년 전 | 2325 | ||
| 5021 | PHP |
|
5년 전 | 3252 | |
| 5020 | PHP | 5년 전 | 4306 | ||
| 5019 | PHP | 5년 전 | 4331 | ||
| 5018 | 웹서버 | 5년 전 | 6705 | ||
| 5017 | 기타 |
HappyTank
|
5년 전 | 5071 | |
| 5016 | MySQL | 5년 전 | 3092 | ||
| 5015 | 기타 | 5년 전 | 2277 | ||
| 5014 | 기타 | 5년 전 | 2839 | ||
| 5013 | 기타 | 5년 전 | 2255 | ||
| 5012 | 기타 | 5년 전 | 2265 | ||
| 5011 | 기타 | 5년 전 | 2217 | ||
| 5010 | 기타 | 5년 전 | 1777 | ||
| 5009 | 기타 | 5년 전 | 2385 | ||
| 5008 | 기타 | 5년 전 | 2019 | ||
| 5007 | 기타 | 5년 전 | 1981 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기