minsung

add password validation

......@@ -40,6 +40,7 @@ function checkValidation(self){
}
$(document).ready(function () {
$('#eValidation').keyup(function () {
var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
......@@ -53,3 +54,12 @@ $('#eValidation').keyup(function () {
}
});
});
$(document).ready(function () {
$('#fpassword, #spassword').on('keyup', function () {
if ($('#fpassword').val() == $('#spassword').val()) {
$('#message').html('일치').css('color', 'green');
} else
$('#message').html('비밀번호가 일치하지 않습니다').css('color', 'red');
});
});
......