Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- selectoptions
- push오류
- Math.floor()
- 주석이 먹히지 않을 때
- SUB함수
- 증가값
- slideUp
- 1521
- ctrl+/
- selectedIndex
- 파일질라설치
- removeClass
- Math.ceil()
- toFixed()
- calc.minus
- FileZilla설치
- Parent
- addClass
- is_check
- Git
- excel중복체크
- hide
- 파일질라설치오류
- Excel
- Math.round()
- FileZilla다운로드
- 소스트리인증실패
- 파일질라다운로드
- calc.plus
- index %
Archives
- Today
- Total
잡동사니에도 사랑을
[21.10.13] exam10(02_jQueryEvent) 본문
728x90
반응형
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="../css/event.css">
</head>
<body>
<h1>회원가입</h1>
<form name="form1" action="form_ok.html">
<div id="input">
<h3>당신의 이름은 무엇입니까?</h3>
<input type="text" name="user_name" />
<input type="submit" value="저장하기" class="myButton" />
<input type="reset" value="다시작성" class="myButton" />
</div>
</form>
<script type="text/javascript" src="http://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript">
$(function(){
$('form[name=form1]').submit(function(){
if( !confirm('정말 저장하시겠습니까?')){
return false; //취소를 눌렀을 때 이동하지 말라는 뜻
}
});
$('input[type=reset]').click(function(){
if( !confirm('정말 입력을 취소하시겠습니까?')){
return false;
}
});
});
</script>
</body>
</html>
728x90
반응형
'JAVA_EE > JQuery' 카테고리의 다른 글
[21.10.13] exam12(02_jQueryEvent) (0) | 2021.10.14 |
---|---|
[21.10.13] exam11(02_jQueryEvent) (0) | 2021.10.14 |
[21.10.13] exam08(02_jQueryEvent) (0) | 2021.10.14 |
[21.10.06] exam07(02_jQueryEvent) - Key이벤트(keypress) (0) | 2021.10.07 |
[21.10.06] exam06(02_jQueryEvent) - KeyName(keyCode) (0) | 2021.10.07 |