js 수정으로 인해 안됐던 기능 수정

This commit is contained in:
JSYOO 2021-11-29 09:50:35 +09:00
parent 0e4656d128
commit 8eb1085c46
2 changed files with 28 additions and 28 deletions

View File

@ -199,7 +199,6 @@ $(document).ready(function() {
}else{
$("#mobileCertYn").val("N");
$("#mobileCertSendBtn").css("display","");
$("#mobileReSend").css("display","");
$("[id^='mobileSuc']").css("display","none");
}
});
@ -349,6 +348,7 @@ function mobileCert(){
success : function(result){
alert("인증번호가 발송됐습니다.");
$("#mobileCertYn").val("N");
$("#mobileReSend").css("display","");
$("[id^='mobileSuc']").css("display","none");
$("[id^='mobileVrfctNo']").css("display","inline-block");
mobileDoubleSubmitFlag = false;

View File

@ -32,6 +32,7 @@
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<script>
$(document).ready(function() {
birthSelectbox();
<%
//인증완료
%>
@ -96,6 +97,7 @@ $(document).ready(function() {
$("input:checkbox[name='gender']:checkbox[value='${loginVO.gender}']").prop("checked",true);
var birthday='${loginVO.birthday}';
var birth_yy = birthday.substr(0,4);
@ -107,7 +109,7 @@ $(document).ready(function() {
var MobileNo='<c:out value="${loginVO.mobileNo}"/>';
if(!MobileNo == "")
if(!(MobileNo == ""))
{
var mobileNo_1 = "";
var mobileNo_2 = "";
@ -131,6 +133,30 @@ $(document).ready(function() {
}
})
function birthSelectbox(){
var now = new Date();
var year = now.getFullYear();
var mon = now.getMonth() + 1 > 9 ? "" + (now.getMonth() + 1) : "0" + (now.getMonth() + 1);
var day = now.getDate() > 9 ? "" + now.getDate() : "0" + now.getDate();
// 년도
for (var i = 1900; i <= year; i++) {
$("#birth_yy").append('<option value="' + i + '">' + i + "</option>");
}
// 월별
for (var i = 1; i <= 12; i++) {
var mm = i > 9 ? i : "0" + i;
$("#birth_mm").append('<option value="' + mm + '">' + mm + "</option>");
}
// 일별
for (var i = 1; i <= 31; i++) {
var dd = i > 9 ? i : "0" + i;
$("#birth_dd").append('<option value="' + dd + '">' + dd + "</option>");
}
}
function update(){
var flag = false;
@ -466,32 +492,6 @@ function checkBirthday() {
}
}
jQuery(function ($) {
var now = new Date();
var year = now.getFullYear();
var mon = now.getMonth() + 1 > 9 ? "" + (now.getMonth() + 1) : "0" + (now.getMonth() + 1);
var day = now.getDate() > 9 ? "" + now.getDate() : "0" + now.getDate();
// 년도
for (var i = 1900; i <= year; i++) {
$("#birth_yy").append('<option value="' + i + '">' + i + "</option>");
}
// 월별
for (var i = 1; i <= 12; i++) {
var mm = i > 9 ? i : "0" + i;
$("#birth_mm").append('<option value="' + mm + '">' + mm + "</option>");
}
// 일별
for (var i = 1; i <= 31; i++) {
var dd = i > 9 ? i : "0" + i;
$("#birth_dd").append('<option value="' + dd + '">' + dd + "</option>");
}
$("#birth_yy > option[value=" + year + "]").attr("selected", "true");
$("#birth_mm > option[value=" + mon + "]").attr("selected", "true");
$("#birth_dd > option[value=" + day + "]").attr("selected", "true");
});
function isValidDate(param) {
try {
param = param.replace(/-/g, '');