일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 안드로이드
- 시작하기
- 오라클
- tomcat
- mysql
- 아두이노
- 운정
- 설정
- 설치
- jobtoy
- Unity
- librecad
- 스크래치
- 톰캣
- 강좌
- Android
- MSSQL
- 파주
- 유니티
- html5
- 라즈베리파이
- s4a
- Spring Security
- 잡토이 메이킹 코딩 학원
- 코딩
- jsp
- oracle
- 예제
- 잡토이
- 리브레캐드
Archives
- Today
- Total
랩제이
[jsp] 업로드 버튼 file 숨기기 본문
http://www.joshi.co.kr/board_nCHS89/291098
<
script
type
=
"text/javascript"
>
$(function () {
$('#btn-upload').click(function (e) {
e.preventDefault();
$('#file').click();
});
});
function changeValue(obj){
alert(obj.value);
}
</
script
>
<
style
type
=
"text/css"
>
#file { display:none; }
</
style
>
<
div
>
<
input
type
=
"file"
id
=
"file"
name
=
"file"
onchange
=
"changeValue(this)"
/>
<
button
type
=
"button"
id
=
"btn-upload"
>Image</
button
>
</
div
>
'programming > jsp' 카테고리의 다른 글
[jsp] jsp 파일 변경 (0) | 2017.09.25 |
---|---|
[jsp] jsonp 테스트 (0) | 2016.12.19 |
[jsp] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache (0) | 2016.12.02 |
[jsp] P3P 쿠키 사용 설정하기 (0) | 2015.06.08 |
[jsp] IE11 한글 인코딩 (0) | 2015.05.21 |