Showing
1 changed file
with
10 additions
and
0 deletions
... | @@ -40,6 +40,7 @@ function checkValidation(self){ | ... | @@ -40,6 +40,7 @@ function checkValidation(self){ |
40 | 40 | ||
41 | } | 41 | } |
42 | 42 | ||
43 | +$(document).ready(function () { | ||
43 | $('#eValidation').keyup(function () { | 44 | $('#eValidation').keyup(function () { |
44 | 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,}))$/; | 45 | 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,}))$/; |
45 | 46 | ||
... | @@ -53,3 +54,12 @@ $('#eValidation').keyup(function () { | ... | @@ -53,3 +54,12 @@ $('#eValidation').keyup(function () { |
53 | } | 54 | } |
54 | }); | 55 | }); |
55 | }); | 56 | }); |
57 | + | ||
58 | + $(document).ready(function () { | ||
59 | +$('#fpassword, #spassword').on('keyup', function () { | ||
60 | + if ($('#fpassword').val() == $('#spassword').val()) { | ||
61 | + $('#message').html('일치').css('color', 'green'); | ||
62 | + } else | ||
63 | + $('#message').html('비밀번호가 일치하지 않습니다').css('color', 'red'); | ||
64 | +}); | ||
65 | +}); | ... | ... |
-
Please register or login to post a comment