반응형
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 | 29 | 30 | 31 |
Tags
- jquery
- 서버
- 플러터
- express
- 설치
- node.js
- android
- Flow
- node
- 이클립스
- kotlininaction
- 코루틴
- php
- php변수
- ios
- php개발
- script
- java
- 변수
- Eclipse
- 조건문
- kotlin2.0
- 그림으로 배우는 서버구조
- 정보처리기사
- Kotlin
- 스터디
- 코틀린
- SwiftUI
- Flutter
- 스나이퍼팩토리
Archives
- Today
- Total
mygomii
[script&Jquery] #빈값(null) 체크하기 본문
반응형
빈값 체크하기
1
2
3
4
5
id : <imput type="text" id="id">
password : <imput type="password" id="password">
<input type="button" id="btn">
값이 비어있으면 return false
값이 있으면 return true
1 2 3 4 5 6 7 8 9 | $('#btn').click(function(){ if($('#id').val == ''){ return false; } if($('#password').val == ''){ return false; } return true; }); | cs |
반응형
'JavaScript&JQuery' 카테고리의 다른 글
| [script&Jquery] #두개의 날짜 범위 설정 datepicker (0) | 2018.05.02 |
|---|---|
| [script&Jquery] #체크박스 전체선택&해제&삭제하기 (2) | 2018.04.20 |
| [script&Jquery] #비밀번호 유효성(회원가입) - 영문+숫자+특수문자 (0) | 2018.04.14 |
| [script&Jquery] #쿠키(Cookie)를 이용한 ID정보기억 (0) | 2018.03.17 |
| [script] #쿠키를 위한 함수(setCookie,getCookie,deleteCookie) (2) | 2018.03.17 |