We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db82bf0 commit f1c1c6eCopy full SHA for f1c1c6e
views/pages/index.ejs
@@ -24,9 +24,13 @@
24
25
$.get('/load', function(data) {
26
$("#user_submit").click(function(evt) {
27
- write();
28
- alert("입력 완료! " + $("#user_name").val() + " 님 감사합니다");
29
- window.location.replace("/board");
+ if ($("#user_name").val() == '' || $("#user_position").val() == '' || $("#user_interest").val() == '' || $("#user_email").val() == '' || $("#user_description").val() == '') {
+ alert("빈 칸이 있습니다. 모든 정보를 다 채워주세요!\nPlease fill out all of the sections.");
+ } else {
30
+ write();
31
+ alert("입력 완료! " + $("#user_name").val() + " 님 감사합니다");
32
+ window.location.replace("/board");
33
+ }
34
});
35
36
0 commit comments