250x250
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
- javascript
- front-end
- ipad
- 비전공 개발자
- HTML
- hover
- effect
- html5
- 풀스택
- IOS
- php
- image
- css3
- react
- 자바스크립트
- 백엔드
- SWIFT
- iPhone
- xcode
- 프론트엔드
- keyframes
- 애니메이션
- iOS 개발자
- Animation
- 개발자
- MAC
- button
- CSS
Archives
- Today
- Total
비전공자 개발일기
swal() - 예쁜 알림창 본문
728x90
SMALL

SweetAlert
You've arrived! How lovely. Let me take your coat. Oops! Seems like something went wrong! Delete important stuff? That doesn't seem like a good idea. Are you sure you want to do that?
sweetalert.js.org
사용예시
var importantLabel = $(".importantLabel");
for(var i = 0; i < importantLabel.length; i++) {
var val = $(importantLabel[i]).next("td").find("input");
if(!val.length) {
val = $(importantLabel[i]).next("td").find("select");
}
if(!val.val()) {
swal({
icon: "warning",
title: "필수 값을 입력해주시길 바랍니다.",
})
val.focus();
return false;
}
}728x90
LIST
'Javascript' 카테고리의 다른 글
| HAMBURGER ANIMATION (0) | 2022.04.18 |
|---|---|
| [HTML & Javascript] radio 버튼으로 테이블 항목 바꾸기 (0) | 2022.01.12 |
| Javascript - Update CSS (0) | 2021.11.04 |
| Javascript - search (0) | 2021.11.03 |
| Javascript - list (0) | 2021.11.02 |